|
|
T | dotp (const QuaternionT &v) const |
| | Returns dot product between this quaternion and the argument quaternion. |
| |
|
void | getAngleAxis (float &angle, Vector3T< T > &axis) const |
| | Converts this quaternion to angle/axis format. |
| |
|
void | identity () |
| |
| T | lensq () const |
| | The squared length of this quaternion. More... |
| |
| QuaternionT & | normalize () |
| | Normalizes the quaternion to length 1. More... |
| |
|
| operator Nimble::Matrix3T< T > () const |
| | Converts this quaternion into a 3x3 rotation matrix. |
| |
| | operator Nimble::Matrix4T< T > () const |
| | Converts this quaternion into a 4x4 matrix. More... |
| |
|
template<typename Y > |
| Vector3T< Y > | operator* (const Vector3T< Y > &v) const |
| | Transforms the argument vector this quaternion transformation. |
| |
|
QuaternionT | operator* (const QuaternionT &b) const |
| | Multiplies two quaterions. |
| |
| QuaternionT & | operator*= (T v) |
| | Multiply the quaternion components. More... |
| |
|
QuaternionT & | operator*= (const QuaternionT &v) |
| | Multiply this quaternion with another, and store the result into this quaternion. |
| |
|
QuaternionT | operator+ (const QuaternionT &v) const |
| | Addition operator. |
| |
|
QuaternionT & | operator+= (const QuaternionT &v) |
| | Accumulation add operator. |
| |
|
QuaternionT | operator- (const QuaternionT &v) const |
| | Subtraction operator. |
| |
| const QuaternionT | operator- () const |
| | Negate a quaternion. More... |
| |
|
QuaternionT & | operator-= (const QuaternionT &v) |
| | Accumulation minus operator. |
| |
|
QuaternionT & | operator= (const Matrix4T< T > &m) |
| | Extracts the rotation part of a 4x4 matrix, and calculates the quaternion values from that. |
| |
| QuaternionT & | operator= (const Matrix3T< T > &m) |
| | Calculates quaternion values from a 3x3 rotation matrix. More... |
| |
|
QuaternionT & | operator^= (const QuaternionT &v) |
| | Multiply the components of this quaternion directly with the components of another quaternion. |
| |
| const QuaternionT | operator~ () const |
| | Negate the x, y, and z value of this quaternion. More... |
| |
|
| QuaternionT () |
| | Constructs a quaternion object, with uninitialized values. |
| |
| | QuaternionT (const QuaternionT< T > &o) |
| | Constructs a quaternion object, with values copied from another quaternion object. More... |
| |
| | QuaternionT (const Vector3T< T > &v, T w_) |
| | Constructs a quaternion object, with values copied from a 3D vector and a float. More... |
| |
|
| QuaternionT (T x_, T y_, T z_, T w_) |
| | Constructs a quaternion with given values. |
| |
|
| QuaternionT (const Matrix3T< T > &m) |
| | Converts a rotation matrix to quaternion format. |
| |
template<typename T>
class Nimble::QuaternionT< T >
A quaternion class.
Quaternion are typically used to present 3D rotations in a way that can be easily interpolated, and which is not susceptible to the artifacts that plague the "pitch/roll/yaw" definition.