|
GLG Toolkit, JavaScript Library
Version 4.6
|
Defines an XYZ point in 3D space or an RGB color. More...
Defines an XYZ point in 3D space or an RGB color.
New GlgPoint instances can be created using the CreateGlgPoint method.
Public Attributes | |
| double | x |
| X or R value. More... | |
| double | y |
| Y or G value. More... | |
| double | z |
| Z or B value. More... | |
Public Member Functions | |
| void | CopyFrom (GlgPoint point) |
| Copies values from another GlgPoint to this point. More... | |
| boolean | Equals (GlgPoint point) |
| Performs equality comparison between the point passed as the method parameter and the point the method is invoked on. More... | |
Static Public Member Functions | |
| static GlgPoint | CopyGlgPoint (GlgPoint point) |
| Copy constructor. More... | |
| static GlgPoint | CreateGlgPoint (double x, double y, double z) |
| Constructor. More... | |
| static GlgPoint | CreateGlgPointFromPoint (GlgPoint point) |
| Copy constructor. More... | |
| static void | ReleaseToCache (GlgPoint obj) |
| Returns the object to the internal cache for reuse. More... | |
| double x |
X or R value.
| double y |
Y or G value.
| double z |
Z or B value.
| void CopyFrom | ( | GlgPoint | point | ) |
Copies values from another GlgPoint to this point.
| point | A point to copy values from. |
Copy constructor.
Copies an instance of a GlgPoint.
The static method is invoked on the GLG Toolkit handle obtained via a 'new GlgToolkit()' call at the application start-up.
| point | A point to copy values from. If the parameter is null (or not supplied), a new GlgPoint object will not be created and null will be returned. |
|
static |
Constructor.
Creates an instance of GlgPoint.
The static method is invoked on the GLG Toolkit handle obtained via a 'new GlgToolkit()' call at the application start-up.
| x | X value |
| y | Y value |
| z | Z value |
Copy constructor.
Copies an instance of a GlgPoint.
The static method is invoked on the GLG Toolkit handle obtained via a 'new GlgToolkit()' call at the application start-up.
| point | An optional point to copy values from. If this parameter is not supplied or null, the new point's values will be set to 0. |
| boolean Equals | ( | GlgPoint | point | ) |
Performs equality comparison between the point passed as the method parameter and the point the method is invoked on.
| point | The GlgPoint to compare with. |
|
static |
Returns the object to the internal cache for reuse.
The object should not be accessed after it is released to the cache.
Only objects obtained with a call to GLG API method should be released to the cache.
The static method is invoked on the GLG Toolkit handle obtained via a 'new GlgToolkit()' call at the application start-up.
| obj | The object to release. |