Quat Methods |
The Quat type exposes the following members.
Name | Description | |
---|---|---|
CubicSlerp |
Performs a cubic spherical interpolation between quaternions `preA`,
this vector, `b`, and `postB`, by the given amount `t`.
| |
Dot |
Returns the dot product of two quaternions.
| |
Equals(Object) | (Overrides ValueTypeEquals(Object).) | |
Equals(Quat) | ||
GetEuler |
Returns Euler angles (in the YXZ convention: when decomposing,
first Z, then X, and Y last) corresponding to the rotation
represented by the unit quaternion. Returned vector contains
the rotation angles in the format (X angle, Y angle, Z angle).
| |
GetHashCode | (Overrides ValueTypeGetHashCode.) | |
GetType | (Inherited from Object.) | |
Inverse |
Returns the inverse of the quaternion.
| |
IsEqualApprox |
Returns true if this quaternion and `other` are approximately equal, by running
IsEqualApprox(Single, Single) on each component.
| |
IsNormalized |
Returns whether the quaternion is normalized or not.
| |
Normalized |
Returns a copy of the quaternion, normalized to unit length.
| |
Set(Quat) | Obsolete. | |
Set(Single, Single, Single, Single) | Obsolete. | |
SetAxisAngle | Obsolete. | |
SetEuler | Obsolete. | |
Slerp |
Returns the result of the spherical linear interpolation between
this quaternion and `to` by amount `weight`.
Note: Both quaternions must be normalized.
| |
Slerpni |
Returns the result of the spherical linear interpolation between
this quaternion and `to` by amount `weight`, but without
checking if the rotation path is not bigger than 90 degrees.
| |
ToString | (Overrides ValueTypeToString.) | |
ToString(String) | ||
Xform |
Returns a vector transformed (multiplied) by this quaternion.
|