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