Quaternion Methods |
The Quaternion type exposes the following members.
| Name | Description | |
|---|---|---|
| Add(Quaternion) | Quaternion addition
| |
| Add(Quaternion, Quaternion) | Quaternion addition
| |
| Conjugate | Quaternion conjugation
| |
| Conjugate(Quaternion) | Quaternion conjugation
| |
| Dot(Quaternion) |
Dot product of two Quaternions
| |
| Dot(Quaternion, Quaternion) |
Dot product of two Quaternions
| |
| DotD(Quaternion) |
Dot product of two Quaternions
| |
| DotD(Quaternion, Quaternion) |
Dot product of two Quaternions
| |
| Equals(Object) | Quaternion exact equality - see EQ(Quaternion, Quaternion) for alternative
(Overrides ValueTypeEquals(Object).) | |
| Equals(Quaternion) | Quaternion exact equality - see EQ(Quaternion, Quaternion) for alternative
| |
| GetHashCode |
Returns the hash code for the current Quaternion.
(Overrides ValueTypeGetHashCode.) | |
| Invert | Quaternion inversion
| |
| Invert(Quaternion) | Quaternion inversion
| |
| Length |
Length of Quaternion | |
| Length(Quaternion) |
Length of Quaternion | |
| LengthD |
Length of Quaternion | |
| LengthD(Quaternion) |
Length of Quaternion | |
| LengthSq |
Length squared of Quaternion | |
| LengthSq(Quaternion) |
Length squared of Quaternion | |
| LengthSqD |
Length squared of Quaternion | |
| LengthSqD(Quaternion) |
Length squared of Quaternion | |
| Multiply(Quaternion) | Quaternion multiplication
| |
| Multiply(Quaternion, Quaternion) | Quaternion multiplication
| |
| Negate | Quaternion in-place negation.
| |
| Normalize | Quaternion normalization - make its length be 1
| |
| Normalize(Quaternion) | Quaternion normalization - make its length be 1
| |
| RotationAxis(Vector3, Double) |
Form a rotation Quaternion rotating about given axis
| |
| RotationAxis(Vector3, Single) |
Form a rotation Quaternion rotating about given axis
| |
| RotationAxisDegrees |
Form a rotation Quaternion rotating about given axis
| |
| RotationMatrix |
Create a rotation Quaternion from a rotation Matrix | |
| RotationX |
Form a rotation Quaternion rotating about the X-Axis
| |
| RotationXDegrees |
Form a rotation Quaternion rotating about the X-Axis
| |
| RotationY |
Form a rotation Quaternion rotating about the Y-Axis
| |
| RotationYawPitchRoll(Double, Double, Double) |
Form a rotation Quaternion from Yaw (Y-Axis rotation), Pitch (X-Axis rotation) and Roll (Z-Axis rotation)
| |
| RotationYawPitchRoll(Single, Single, Single) |
Form a rotation Quaternion from Yaw (Y-Axis rotation), Pitch (X-Axis rotation) and Roll (Z-Axis rotation)
| |
| RotationYawPitchRollDegrees |
Form a rotation Quaternion from Yaw (Y-Axis rotation), Pitch (X-Axis rotation) and Roll (Z-Axis rotation)
| |
| RotationYDegrees |
Form a rotation Quaternion rotating about the Y-Axis
| |
| RotationZ |
Form a rotation Quaternion rotating about the Z-Axis
| |
| RotationZDegrees |
Form a rotation Quaternion rotating about the Z-Axis
| |
| Slerp(Quaternion, Double) |
Spherical interpolation between this Quaternion and another Quaternion This is most commonly used to find an intermediate rotation between between a start and an end rotation. When t = 0 returns this. When t = 1 returns b. When t = 0.5 returns a rotation "midway" between this and b. | |
| Slerp(Quaternion, Quaternion, Double) |
Spherical interpolation between two Quaternions
This is most commonly used to find an intermediate rotation between between a start and an end rotation. When t = 0 returns a. When t = 1 returns b. When t = 0.5 returns a rotation "midway" between a and b. | |
| Slerp(Quaternion, Quaternion, Single) |
Spherical interpolation between two Quaternions
This is most commonly used to find an intermediate rotation between a start and an end rotation. When t = 0 returns a. When t = 1 returns b. When t = 0.5 returns a rotation "midway" between a and b. | |
| Subtract(Quaternion) | Quaternion subtraction
| |
| Subtract(Quaternion, Quaternion) | Quaternion subtraction
| |
| ToAxisAngle(Quaternion, Vector3, Double) |
Extract axis and angle from Quaternion | |
| ToAxisAngle(Quaternion, Vector3, Single) |
Extract axis and angle from Quaternion | |
| ToString |
Returns a string that represents the current Quaternion.
(Overrides ValueTypeToString.) | |
| TransformNormal(Vector2) |
Transform Vector2 normal by this Quaternion | |
| TransformNormal(Vector3) |
Transform Vector3 normal by this Quaternion |