Click or drag to resize

Quat Methods

The Quat type exposes the following members.

Methods
  NameDescription
Public methodCubicSlerp
Performs a cubic spherical interpolation between quaternions `preA`, this vector, `b`, and `postB`, by the given amount `t`.
Public methodDot
Returns the dot product of two quaternions.
Public methodEquals(Object) (Overrides ValueTypeEquals(Object).)
Public methodEquals(Quat)
Public methodGetEuler
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).
Public methodGetHashCode (Overrides ValueTypeGetHashCode.)
Public methodGetType (Inherited from Object.)
Public methodInverse
Returns the inverse of the quaternion.
Public methodIsEqualApprox
Returns true if this quaternion and `other` are approximately equal, by running IsEqualApprox(Single, Single) on each component.
Public methodIsNormalized
Returns whether the quaternion is normalized or not.
Public methodNormalized
Returns a copy of the quaternion, normalized to unit length.
Public methodSet(Quat) Obsolete.
Public methodSet(Single, Single, Single, Single) Obsolete.
Public methodSetAxisAngle Obsolete.
Public methodSetEuler Obsolete.
Public methodSlerp
Returns the result of the spherical linear interpolation between this quaternion and `to` by amount `weight`. Note: Both quaternions must be normalized.
Public methodSlerpni
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.
Public methodToString (Overrides ValueTypeToString.)
Public methodToString(String)
Public methodXform
Returns a vector transformed (multiplied) by this quaternion.
Top
See Also