GLG Toolkit, C# Class 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.
Public Member Functions | |
void | CopyFrom (GlgCube cube) |
GlgCube () | |
GlgCube (GlgCube cube) | |
Static Public Member Functions | |
static GlgCube | GetFromCache () |
static void | ReleaseToCache (GlgCube obj) |
Public Attributes | |
GlgPoint | p1 |
GlgPoint | p2 |
GlgCube | ( | ) |
Default contructor.
void CopyFrom | ( | GlgCube | cube | ) |
Copies values from the supplied cube to this cube.
cube | A cube to copy values from. |
|
static |
Returns an object from an internal cache, or creates a new object if the cache is empty.
|
static |
Returns the object to the internal cache for reuse.
Only objects obtained with GetFromCache should be released to the cache. Releasing to cache objects created with new would result in consuming resources due to the groth of the cache size. The object should not be accessed after it is released to the cache.
GlgPoint p1 |
The point with the lowest coordinate values.
GlgPoint p2 |
The point with the highest coordinate values.