#include <OPC_IceHook.h>
Public Member Functions | |
inline_ HPoint & | Add (float _x, float _y, float _z, float _w) |
Add a vector. | |
inline_ HPoint & | Add (const float f[4]) |
Add a vector. | |
inline_ | HPoint () |
Empty constructor. | |
inline_ | HPoint (float _x, float _y, float _z, float _w=0.0f) |
Constructor from floats. | |
inline_ | HPoint (const float f[4]) |
Constructor from array. | |
inline_ | HPoint (const Point &p, float _w=0.0f) |
Constructor from a Point. | |
inline_ float | Magnitude () const |
Computes magnitude. | |
float | Max () const |
Returns MAX(x, y, z, w);. | |
HPoint & | Max (const HPoint &p) |
Sets each element to be componentwise maximum. | |
float | Min () const |
Returns MIN(x, y, z, w);. | |
HPoint & | Min (const HPoint &p) |
Sets each element to be componentwise minimum. | |
inline_ HPoint & | Mul (float s) |
Multiplies by a scalar. | |
inline_ HPoint & | Normalize () |
Normalize the vector. | |
inline_ bool | operator!= (const HPoint &p) const |
Operator for "if(HPoint!=HPoint)". | |
inline_ HPoint | operator* (const HPoint &p) const |
Operator for HPoint Mul = HPoint * HPoint;. | |
inline_ HPoint | operator* (float s) const |
Operator for HPoint Scale = HPoint * float;. | |
Point | operator* (const Matrix3x3 &mat) const |
Operator for Point Mul = HPoint * Matrix3x3;. | |
HPoint | operator* (const Matrix4x4 &mat) const |
Operator for HPoint Mul = HPoint * Matrix4x4;. | |
inline_ HPoint & | operator*= (const HPoint &p) |
Operator for HPoint *= HPoint;. | |
inline_ HPoint & | operator*= (float s) |
Operator for HPoint *= float;. | |
HPoint & | operator*= (const Matrix4x4 &mat) |
Operator for HPoint *= Matrix4x4. | |
inline_ HPoint | operator+ (const HPoint &p) const |
Operator for HPoint Plus = HPoint + HPoint;. | |
inline_ HPoint & | operator+= (const HPoint &p) |
Operator for HPoint += HPoint;. | |
inline_ HPoint & | operator+= (float s) |
Operator for HPoint += float;. | |
inline_ HPoint | operator- () const |
Operator for HPoint Negate = - HPoint;. | |
inline_ HPoint | operator- (const HPoint &p) const |
Operator for HPoint Minus = HPoint - HPoint;. | |
inline_ HPoint & | operator-= (const HPoint &p) |
Operator for HPoint -= HPoint;. | |
inline_ HPoint & | operator-= (float s) |
Operator for HPoint -= float;. | |
inline_ HPoint | operator/ (const HPoint &p) const |
Operator for HPoint Div = HPoint / HPoint;. | |
inline_ HPoint | operator/ (float s) const |
Operator for HPoint Scale = HPoint / float;. | |
inline_ HPoint & | operator/= (const HPoint &p) |
Operator for HPoint /= HPoint;. | |
inline_ HPoint & | operator/= (float s) |
Operator for HPoint /= float;. | |
inline_ bool | operator== (const HPoint &p) const |
Operator for "if(HPoint==HPoint)". | |
inline_ float | operator| (const HPoint &p) const |
Operator for float DotProd = HPoint | HPoint;. | |
inline_ HPoint & | Set (float _x, float _y, float _z, float _w) |
Assignment from values. | |
inline_ HPoint & | Set (const float f[4]) |
Assignment from array. | |
inline_ HPoint & | Set (const HPoint &src) |
Assignment from another h-point. | |
inline_ float | SquareMagnitude () const |
Computes square magnitude. | |
inline_ HPoint & | Sub (float _x, float _y, float _z, float _w) |
Subtract a vector. | |
inline_ HPoint & | Sub (const float f[4]) |
Subtract a vector. | |
inline_ HPoint & | Zero () |
Clear the point. | |
inline_ | ~HPoint () |
Destructor. | |
Public Attributes | |
float | w |
Cast a HPoint to a Point. w is discarded. | |
Friends | |
inline_ friend HPoint | operator* (float s, const HPoint &p) |
Operator for HPoint Scale = float * HPoint;. | |
inline_ friend HPoint | operator/ (float s, const HPoint &p) |
Operator for HPoint Scale = float / HPoint;. |
Definition at line 16 of file OPC_IceHook.h.
inline_ IceMaths::HPoint::HPoint | ( | ) | [inline] |
Empty constructor.
Definition at line 21 of file OPC_IceHook.h.
inline_ IceMaths::HPoint::HPoint | ( | float | _x, |
float | _y, | ||
float | _z, | ||
float | _w = 0.0f |
||
) | [inline] |
Constructor from floats.
Definition at line 23 of file OPC_IceHook.h.
inline_ IceMaths::HPoint::HPoint | ( | const float | f[4] | ) | [inline] |
Constructor from array.
Definition at line 25 of file OPC_IceHook.h.
inline_ IceMaths::HPoint::HPoint | ( | const Point & | p, |
float | _w = 0.0f |
||
) | [inline] |
Constructor from a Point.
Definition at line 27 of file OPC_IceHook.h.
inline_ IceMaths::HPoint::~HPoint | ( | ) | [inline] |
Destructor.
Definition at line 29 of file OPC_IceHook.h.
inline_ HPoint& IceMaths::HPoint::Add | ( | float | _x, |
float | _y, | ||
float | _z, | ||
float | _w | ||
) | [inline] |
Add a vector.
Definition at line 42 of file OPC_IceHook.h.
inline_ HPoint& IceMaths::HPoint::Add | ( | const float | f[4] | ) | [inline] |
Add a vector.
Definition at line 44 of file OPC_IceHook.h.
inline_ float IceMaths::HPoint::Magnitude | ( | ) | const [inline] |
Computes magnitude.
Reimplemented from IceMaths::Point.
Definition at line 66 of file OPC_IceHook.h.
float IceMaths::HPoint::Max | ( | ) | const [inline] |
Returns MAX(x, y, z, w);.
Reimplemented from IceMaths::Point.
Definition at line 57 of file OPC_IceHook.h.
HPoint& IceMaths::HPoint::Max | ( | const HPoint & | p | ) | [inline] |
Sets each element to be componentwise maximum.
Definition at line 61 of file OPC_IceHook.h.
float IceMaths::HPoint::Min | ( | ) | const [inline] |
Returns MIN(x, y, z, w);.
Reimplemented from IceMaths::Point.
Definition at line 55 of file OPC_IceHook.h.
HPoint& IceMaths::HPoint::Min | ( | const HPoint & | p | ) | [inline] |
Sets each element to be componentwise minimum.
Definition at line 59 of file OPC_IceHook.h.
inline_ HPoint& IceMaths::HPoint::Mul | ( | float | s | ) | [inline] |
Multiplies by a scalar.
Definition at line 52 of file OPC_IceHook.h.
inline_ HPoint& IceMaths::HPoint::Normalize | ( | ) | [inline] |
Normalize the vector.
Reimplemented from IceMaths::Point.
Definition at line 69 of file OPC_IceHook.h.
Operator for "if(HPoint!=HPoint)".
Definition at line 146 of file OPC_IceHook.h.
Operator for HPoint Mul = HPoint * HPoint;.
Definition at line 93 of file OPC_IceHook.h.
Operator for HPoint Scale = HPoint * float;.
Reimplemented from IceMaths::Point.
Definition at line 95 of file OPC_IceHook.h.
Operator for Point Mul = HPoint * Matrix3x3;.
Reimplemented from IceMaths::Point.
Definition at line 36 of file IceHPoint.cpp.
Operator for HPoint Mul = HPoint * Matrix4x4;.
Reimplemented from IceMaths::Point.
Definition at line 47 of file IceHPoint.cpp.
Operator for HPoint *= HPoint;.
Definition at line 121 of file OPC_IceHook.h.
Operator for HPoint *= float;.
Reimplemented from IceMaths::Point.
Definition at line 123 of file OPC_IceHook.h.
Operator for HPoint *= Matrix4x4.
Reimplemented from IceMaths::Point.
Definition at line 59 of file IceHPoint.cpp.
Operator for HPoint Plus = HPoint + HPoint;.
Definition at line 88 of file OPC_IceHook.h.
Operator for HPoint += HPoint;.
Definition at line 111 of file OPC_IceHook.h.
Operator for HPoint += float;.
Reimplemented from IceMaths::Point.
Definition at line 113 of file OPC_IceHook.h.
Operator for HPoint Negate = - HPoint;.
Reimplemented from IceMaths::Point.
Definition at line 85 of file OPC_IceHook.h.
Operator for HPoint Minus = HPoint - HPoint;.
Definition at line 90 of file OPC_IceHook.h.
Operator for HPoint -= HPoint;.
Definition at line 116 of file OPC_IceHook.h.
Operator for HPoint -= float;.
Reimplemented from IceMaths::Point.
Definition at line 118 of file OPC_IceHook.h.
Operator for HPoint Div = HPoint / HPoint;.
Definition at line 100 of file OPC_IceHook.h.
Operator for HPoint Scale = HPoint / float;.
Reimplemented from IceMaths::Point.
Definition at line 102 of file OPC_IceHook.h.
Operator for HPoint /= HPoint;.
Definition at line 126 of file OPC_IceHook.h.
Operator for HPoint /= float;.
Reimplemented from IceMaths::Point.
Definition at line 128 of file OPC_IceHook.h.
Operator for "if(HPoint==HPoint)".
Definition at line 144 of file OPC_IceHook.h.
Operator for float DotProd = HPoint | HPoint;.
Definition at line 107 of file OPC_IceHook.h.
inline_ HPoint& IceMaths::HPoint::Set | ( | float | _x, |
float | _y, | ||
float | _z, | ||
float | _w | ||
) | [inline] |
Assignment from values.
Definition at line 35 of file OPC_IceHook.h.
inline_ HPoint& IceMaths::HPoint::Set | ( | const float | f[4] | ) | [inline] |
Assignment from array.
Definition at line 37 of file OPC_IceHook.h.
inline_ HPoint& IceMaths::HPoint::Set | ( | const HPoint & | src | ) | [inline] |
Assignment from another h-point.
Definition at line 39 of file OPC_IceHook.h.
inline_ float IceMaths::HPoint::SquareMagnitude | ( | ) | const [inline] |
Computes square magnitude.
Reimplemented from IceMaths::Point.
Definition at line 64 of file OPC_IceHook.h.
inline_ HPoint& IceMaths::HPoint::Sub | ( | float | _x, |
float | _y, | ||
float | _z, | ||
float | _w | ||
) | [inline] |
Subtract a vector.
Definition at line 47 of file OPC_IceHook.h.
inline_ HPoint& IceMaths::HPoint::Sub | ( | const float | f[4] | ) | [inline] |
Subtract a vector.
Definition at line 49 of file OPC_IceHook.h.
inline_ HPoint& IceMaths::HPoint::Zero | ( | ) | [inline] |
Operator for HPoint Scale = float * HPoint;.
Definition at line 97 of file OPC_IceHook.h.
Operator for HPoint Scale = float / HPoint;.
Definition at line 104 of file OPC_IceHook.h.
float IceMaths::HPoint::w |
Cast a HPoint to a Point. w is discarded.
Definition at line 157 of file OPC_IceHook.h.