GLG Toolkit, JavaScript Library
Version 4.2
|
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 Member Functions | |
void | CopyFrom (GlgCube cube) |
boolean | Equals (GlgCube cube) |
Static Public Member Functions | |
static GlgCube | CopyGlgCube (GlgCube cube) |
static GlgCube | CreateGlgCube (GlgPoint point1, GlgPoint point2) |
Public Attributes | |
GlgPoint | p1 |
GlgPoint | p2 |
void CopyFrom | ( | GlgCube | cube | ) |
Copies values from the supplied cube to this cube.
cube | A cube to copy values from. |
Copy constructor, copies an instance of GlgCube. The static method is invoked on the GLG Toolkit handle obtaned via a "new GlgToolkit()" call at the application start-up.
cube | A cube 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 obtaned 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 | ) |
Checks if two cubes are equal.
cube | A cube to compare this cube with. |
GlgPoint p1 |
The point with the lowest coordinate values.
GlgPoint p2 |
The point with the highest coordinate values.