|
Vector rotations |
Rotates the given vector using the quaternion. Note that the quaternion must be a unit quaternion.
|
|
cyPoint3f | GetRotatedVector (const cyPoint3f &p) |
|
void | RotateVector (cyPoint3f &p) |
Public Member Functions |
|
|
| cyQuat (float _s, const cyPoint3f &_v) |
|
| cyQuat (float _s, float _x, float _y, float _z) |
|
| cyQuat (const cyQuat &q) |
|
|
void | Zero () |
|
void | Reset () |
| | Sets the scalar part to 1 and vector part to zero vector.
|
|
void | Set (float _s, const cyPoint3f &_v) |
|
void | Set (float _s, float _x, float _y, float _z) |
|
void | Set (float *array) |
|
void | SetRotation (float angle, const cyPoint3f &axis) |
|
void | SetRotation (float angle, float axisX, float axisY, float axisZ) |
|
void | GetValue (float *array) |
|
float | GetRotationAngle () |
| | Returns rotation angle in radiants.
|
|
cyPoint3f | GetRotationAxis () |
|
|
void | Normalize () |
|
cyQuat | GetNormalized () const |
|
float | LengthSquared () const |
|
float | Length () const |
|
|
void | ToMatrix3 (cyMatrix3f &m) const |
|
void | ToMatrix4 (cyMatrix4f &m) const |
|
cyMatrix3f | ToMatrix3 () const |
|
cyMatrix4f | ToMatrix4 () const |
|
|
cyQuat | operator- () const |
|
|
cyQuat | operator * (const cyQuat &q) const |
|
cyQuat | operator+ (const cyQuat &q) const |
|
cyQuat | operator- (const cyQuat &q) const |
|
cyQuat | operator * (float f) const |
|
|
cyQuat & | operator *= (const cyQuat &q) |
|
cyQuat & | operator+= (const cyQuat &q) |
|
cyQuat & | operator-= (const cyQuat &q) |
|
cyQuat & | operator *= (float f) |
|
|
int | operator== (const cyQuat &q) const |
|
int | operator!= (const cyQuat &q) const |
Public Attributes |
|
float | s |
| | scaler part
|
|
cyPoint3f | v |
| | vector part
|
Friends |
|
cyQuat | operator * (float f, const cyQuat &q) |