Public Member Functions | |
Quaternion (float w, float x, float y, float z) | |
float | Dot (Quaternion quat) |
void | Normalize () |
void | ToAngleAxis (ref float angle, ref Vector3 axis) |
Matrix3 | ToRotationMatrix () |
Quaternion | Inverse () |
void | ToAxes (out Vector3 xAxis, out Vector3 yAxis, out Vector3 zAxis) |
void | FromAxes (Vector3 xAxis, Vector3 yAxis, Vector3 zAxis) |
void | FromRotationMatrix (Matrix3 matrix) |
Quaternion | Log () |
Quaternion | Exp () |
override string | ToString () |
override int | GetHashCode () |
override bool | Equals (object obj) |
Static Public Member Functions | |
Quaternion | Multiply (Quaternion left, Quaternion right) |
Quaternion | operator * (Quaternion left, Quaternion right) |
Vector3 | Multiply (Quaternion quat, Vector3 vector) |
Vector3 | operator * (Quaternion quat, Vector3 vector) |
Quaternion | Multiply (float scalar, Quaternion right) |
Quaternion | operator * (float scalar, Quaternion right) |
Quaternion | Multiply (Quaternion left, float scalar) |
Quaternion | operator * (Quaternion left, float scalar) |
Quaternion | Add (Quaternion left, Quaternion right) |
Quaternion | operator+ (Quaternion left, Quaternion right) |
Quaternion | operator- (Quaternion right) |
bool | operator== (Quaternion left, Quaternion right) |
bool | operator!= (Quaternion left, Quaternion right) |
Quaternion | Slerp (float time, Quaternion quatA, Quaternion quatB) |
Quaternion | Slerp (float time, Quaternion quatA, Quaternion quatB, bool useShortestPath) |
Quaternion | FromAngleAxis (float angle, Vector3 axis) |
Quaternion | Squad (float t, Quaternion p, Quaternion a, Quaternion b, Quaternion q) |
Quaternion | Squad (float t, Quaternion p, Quaternion a, Quaternion b, Quaternion q, bool useShortestPath) |
Public Attributes | |
const float | EPSILON = 1e-03f |
float | w |
float | x |
float | y |
float | z |
Properties | |
Quaternion | Identity |
Quaternion | Zero |
float | Norm |
Vector3 | XAxis |
Vector3 | YAxis |
Vector3 | ZAxis |
|
Creates a new Quaternion. |
|
Used when a Quaternion is added to another Quaternion. |
|
Performs a Dot Product operation on 2 Quaternions. |
|
Calculates the Exponent of a Quaternion. |
|
Creates a Quaternion from a supplied angle and axis. Value of an angle in radians. Arbitrary axis vector. |
|
|
|
|
|
Computes the inverse of a Quaternion. |
|
Calculates the logarithm of a Quaternion. |
|
Used when a Quaternion is multiplied by a float value. |
|
Used when a float value is multiplied by a Quaternion. |
|
|
|
Used to multiply 2 Quaternions together. Quaternion multiplication is not communative in most cases. i.e. p*q != q*p |
|
Normalizes elements of this quaterion to the range [0,1]. |
|
Used when a Quaternion is multiplied by a float value. |
|
Used when a float value is multiplied by a Quaternion. |
|
|
|
Used to multiply 2 Quaternions together. Quaternion multiplication is not communative in most cases. i.e. p*q != q*p |
|
Used when a Quaternion is added to another Quaternion. |
|
Negates a Quaternion, which simply returns a new Quaternion with all components negated. |
|
|
|
Performs spherical quadratic interpolation. |
|
|
|
|
|
Gets a 3x3 rotation matrix from this Quaternion. |
|
Overrides the Object.ToString() method to provide a text representation of a Quaternion. A string representation of a Quaternion. |
|
An Identity Quaternion. |
|
Squared 'length' of this quaternion. |
|
Local X-axis portion of this rotation. |
|
Local Y-axis portion of this rotation. |
|
Local Z-axis portion of this rotation. |
|
A Quaternion with all elements set to 0.0f; |