GLG Toolkit, C# Class Library  Version 4.1
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events
GlgPoint Class Reference

Detailed Description

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
 

Constructor & Destructor Documentation

GlgPoint ( )

Default contsructor.

GlgPoint ( double  x_p,
double  y_p,
double  z_p 
)

Constructs a new GlgPoint with specified values.

GlgPoint ( GlgPoint  point)

Copy constructor.

Member Function Documentation

void CopyFrom ( GlgPoint  point)

Copies values from another GlgPoint to this point.

Parameters
pointA point to copy values from.
static GlgPoint GetFromCache ( )
static

Returns an object from an internal cache, or creates a new object if the cache is empty.

static void ReleaseToCache ( GlgPoint  obj)
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.

Member Data Documentation

double x

X or R value.

double y

Y or G value.

double z

Z or B value.