|
GLG Toolkit, JavaScript Library
Version 4.6
|
Defines a rectangular parallelepiped in 3D space (usually an object's bounding box) by its two diagonal points. More...
Defines a rectangular parallelepiped in 3D space (usually an object's bounding box) by its two diagonal points.
The faces of the parallelepiped are parallel to the coordinate planes. New GlgCube instances can be created using the CreateGlgCube method.
Public Attributes | |
| GlgPoint | p1 |
| The point with the lowest coordinate values. More... | |
| GlgPoint | p2 |
| The point with the highest coordinate values. More... | |
Public Member Functions | |
| void | CopyFrom (GlgCube cube) |
| Copies values from the supplied cube to this cube. More... | |
| boolean | Equals (GlgCube cube) |
| Performs equality comparison between the cube passed as the method parameter and the cube the method is invoked on. More... | |
Static Public Member Functions | |
| static GlgCube | CopyGlgCube (GlgCube cube) |
| Copy constructor, copies an instance of GlgCube. More... | |
| static GlgCube | CreateGlgCube (GlgPoint point1, GlgPoint point2) |
| Constructor. More... | |
| static void | ReleaseToCache (GlgCube object) |
| Returns the object to the internal cache for reuse. More... | |
| GlgPoint p1 |
The point with the lowest coordinate values.
| GlgPoint p2 |
The point with the highest coordinate values.
| void CopyFrom | ( | GlgCube | cube | ) |
Copies values from the supplied cube to this cube.
| cube | A GlgCube object to copy the values from. |
Copy constructor, copies an instance of GlgCube.
The static method is invoked on the GLG Toolkit handle obtained via a 'new GlgToolkit()' call at the application start-up.
| cube | A The GlgCube instance to copy. If this parameter is null (or not supplied), a new GlgCube object will not be created and null will be returned. |
Constructor.
Creates an instance of GlgCube.
The static method is invoked on the GLG Toolkit handle obtained via a 'new GlgToolkit()' call at the application start-up.
| point1 | GlgPoint to use as the first cube point, on null. |
| point2 | GlgPoint to use as the second cube point, on null. |
| boolean Equals | ( | GlgCube | cube | ) |
Performs equality comparison between the cube passed as the method parameter and the cube the method is invoked on.
| cube | The GlgCube object 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.
| object | The object to release. |