GLG Toolkit, C# Class Library  Version 4.2
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() [1/3]

GlgPoint ( )

Default contsructor.

◆ GlgPoint() [2/3]

GlgPoint ( double  x_p,
double  y_p,
double  z_p 

Constructs a new GlgPoint with specified values.

◆ GlgPoint() [3/3]

GlgPoint ( GlgPoint  point)

Copy constructor.

Member Function Documentation

◆ CopyFrom()

void CopyFrom ( GlgPoint  point)

Copies values from another GlgPoint to this point.

pointA point to copy values from.

◆ GetFromCache()

static GlgPoint GetFromCache ( )

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

◆ ReleaseToCache()

static void ReleaseToCache ( GlgPoint  obj)

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

◆ x

double x

X or R value.

◆ y

double y

Y or G value.

◆ z

double z

Z or B value.