|
Public Member Functions |
|
|
| cyPoint3f (float _x, float _y, float _z) |
|
| cyPoint3f (const float *pt) |
|
| cyPoint3f (const cyPoint3f &pt) |
|
| cyPoint3f (const cyPoint2f &pt) |
|
| cyPoint3f (const cyPoint2f &pt, float _z) |
|
|
cyPoint3f & | Zero () |
| | Sets x, y and z coordinates as zero.
|
|
cyPoint3f & | Set (float _x, float _y, float _z) |
| | Sets x, y and z coordinates as given.
|
|
cyPoint3f & | Set (const float *v) |
| | Sets x, y and z coordinates using the values in the given array.
|
|
void | GetValue (float *v) const |
| | Puts x, y and z values into the array.
|
|
|
void | Normalize () |
|
cyPoint3f | GetNormalized () const |
|
float | LengthSquared () const |
|
float | Length () const |
|
|
void | ClampMinMax (float min, float max) |
|
void | ClampMin (float n) |
|
void | ClampMax (float n) |
|
|
cyPoint3f | operator- () const |
|
cyPoint3f | operator+ () const |
|
|
cyPoint3f | operator+ (const cyPoint3f &pt) const |
|
cyPoint3f | operator- (const cyPoint3f &pt) const |
|
cyPoint3f | operator * (const cyPoint3f &pt) const |
|
cyPoint3f | operator/ (const cyPoint3f &pt) const |
|
cyPoint3f | operator+ (float n) const |
|
cyPoint3f | operator- (float n) const |
|
cyPoint3f | operator * (float n) const |
|
cyPoint3f | operator/ (float n) const |
|
|
cyPoint3f & | operator+= (const cyPoint3f &pt) |
|
cyPoint3f & | operator-= (const cyPoint3f &pt) |
|
cyPoint3f & | operator *= (const cyPoint3f &pt) |
|
cyPoint3f & | operator/= (const cyPoint3f &pt) |
|
cyPoint3f & | operator+= (float n) |
|
cyPoint3f & | operator-= (float n) |
|
cyPoint3f & | operator *= (float n) |
|
cyPoint3f & | operator/= (float n) |
|
|
int | operator== (const cyPoint3f &pt) const |
|
int | operator!= (const cyPoint3f &pt) const |
|
|
float & | operator[] (int i) |
|
float | operator[] (int i) const |
|
|
cyPoint3f | Cross (const cyPoint3f pt) const |
| | Cross product.
|
|
cyPoint3f | operator^ (const cyPoint3f pt) const |
| | Cross product.
|
|
float | Dot (const cyPoint3f pt) const |
| | Dot product.
|
|
float | operator% (const cyPoint3f pt) const |
| | Dot product.
|
|
|
cyPoint2f | XY () const |
Public Attributes |
|
float | x |
|
float | y |
|
float | z |
Friends |
|
cyPoint3f | operator+ (const float v, const cyPoint3f &pt) |
| | Addition with a constant.
|
|
cyPoint3f | operator- (const float v, const cyPoint3f &pt) |
| | Subtraction from a constant.
|
|
cyPoint3f | operator * (const float v, const cyPoint3f &pt) |
| | Multiplication with a constant.
|