Inherits BASE::RCStringValueInterface.
Inheritance diagram for BASE::RCQuaternion:


Public Member Functions | |
| RCQuaternion () | |
| RCQuaternion (TReal nW, TReal nX, TReal nY, TReal nZ) | |
| RCQuaternion (const TReal *naSource) | |
| RCQuaternion (const RCMatrix &Source) | |
| RCQuaternion (TReal nPhi, TReal nTheta, TReal nPsi, TBool bInRad=true) | |
| RCQuaternion (const RCTriple &EulerAngles, TBool bInRad=true) | |
| RCQuaternion (const RCQuaternion &Source) | |
| const RCQuaternion & | operator= (const RCQuaternion &Source) |
| const TReal * | Data () const |
| TReal & | operator[] (TInt nIndex) |
| const TReal & | operator[] (TInt nIndex) const |
| RCQuaternion | operator/ (TReal rhs) const |
| RCQuaternion | operator- () const |
| RCQuaternion | operator * (const RCQuaternion &rhs) const |
| const RCQuaternion & | operator *= (const RCQuaternion &rhs) |
| const RCQuaternion & | operator/= (TReal rhs) |
| void | Normalize () |
| RCQuaternion | Normalized () const |
| TReal | Length () const |
| void | SetEulerAngles (TReal nPhi, TReal nTheta, TReal nPsi, TBool bInRad=true) |
| void | SetEulerAngles (const RCTriple &EulerAngles, TBool bInRad=true) |
| void | GetEulerAngles (TReal &nPhiRef, TReal &nThetaRef, TReal &nPsiRef, TBool bInRad=true) const |
| RCTriple | GetEulerAngles (TBool bInRad=true) const |
| TReal | GetHeading () const |
| virtual TBool | FromString (const RCString &sValue) |
| virtual const RCString & | ToString () const |
|
|
Creates an identity quaternion. |
|
||||||||||||||||||||
|
Creates a quaternion with the specified values. |
|
|
Creates a quaternion from an array of 4 TReal values. They are required to be in the order x, y, z, w. |
|
|
Creates a quaternion representing the same rotation as the passed matrix. If the matrix is no rotation matrix the result is undefined. The 4th column and 4th row of the matrix are ignored. |
|
|
Creates a copy of the specified quaternion. |
|
|
Returns a constant pointer to the internal array of the values with the order x, y, z, w. |
|
||||||||||||||||||||
|
Writes the spherical angles for the same rotation the quaternion refers to in the specified variables. |
|
|
Returns the lenght of the quaternion which is the euclid norm. |
|
|
Normalizes the quaternion by deviding it by its length. |
|
|
Returns a normalized copy of this quaternion. |
|
|
Negates all elements of the quaternion. |
|
|
Returns a quaternion equal to this one with all elements devided by the specified value. The value must be nonzero. |
|
|
Devides all elements of the quaternion by the specified value. The value must be nonzero. |
|
|
Assigns the specified quaterion to this one. |
|
|
Returns the nIndex'th element of the quaternion while the oder is x, y, z, w. An index greater 3 is invalid. |
|
|
Returns the nIndex'th element of the quaternion while the oder is x, y, z, w. An index greater 3 is invalid. |
|
||||||||||||||||||||
|
Sets the quaternion to represent the rotation of the specified spheric angles. |
1.4.6-NO