GLG Toolkit, C# Class Library
Version 4.2
|
Defines an XYZ point in 3D space or an RGB color.
Public Member Functions | |
void | CopyFrom (GlgPoint point) |
GlgPoint () | |
GlgPoint (double x_p, double y_p, double z_p) | |
GlgPoint (GlgPoint point) | |
Static Public Member Functions | |
static GlgPoint | GetFromCache () |
static void | ReleaseToCache (GlgPoint obj) |
Public Attributes | |
double | x |
double | y |
double | z |
GlgPoint | ( | ) |
Default contsructor.
void CopyFrom | ( | GlgPoint | point | ) |
Copies values from another GlgPoint to this point.
point | A point 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.
double x |
X or R value.
double y |
Y or G value.
double z |
Z or B value.