Click or drag to resize

Quaternion Methods

The Quaternion type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAngle
Returns the angle (in degrees) between two quaternions.
Public methodStatic memberAngleAxis
Creates a rotation which rotates the specified angle degrees around the specified axis.
Public methodStatic memberDot
Returns the dot product of two quaternions.
Public methodEquals(Object)
Determines whether the specified object is equal to the current object.
(Overrides ValueTypeEquals(Object).)
Public methodStatic memberEquals(Quaternion, Quaternion)
Specifies whether two quaternions are approximately equal.
Public methodStatic memberEuler(Vector3D)
Returns a rotation that rotates Z degrees around the Z axis, X degrees around the X axis, and Y degrees around the Y axis (in that order).
Public methodStatic memberEuler(Single, Single, Single)
Returns a rotation that rotates Z degrees around the Z axis, X degrees around the X axis, and Y degrees around the Y axis (in that order).
Public methodStatic memberFromToRotation
Creates a rotation which rotates from towards to.
Public methodGetHashCode
Returns the hash code of the current object.
(Overrides ValueTypeGetHashCode.)
Public methodGetType (Inherited from Object.)
Public methodStatic memberInverse
Returns the inverse of rotation.
Public methodStatic memberLerp
Linearly interpolates between two quaternions by t.
Public methodStatic memberLookRotation(Vector3D)
Creates a rotation with the specified forward and upwards directions.
Public methodStatic memberLookRotation(Vector3D, Vector3D)
Creates a rotation with the specified forward and upwards directions.
Public methodStatic memberMultiply(Quaternion, Quaternion)
Multiplies a vector with another vector.
Public methodStatic memberMultiply(Quaternion, Vector2D)
Multiplies the given rotation around the given point.
Public methodStatic memberMultiply(Quaternion, Vector3D)
Multiplies the given rotation around the given point.
Public methodStatic memberNegate
Negates every component of the specified quaternion.
Public methodNormalize
Makes the current vector have a magnitude of 1.
Public methodStatic memberNormalize(Quaternion)
Makes the specified quaternion have a magnitude of 1.
Public methodRotate
Rotates the current quaternion according to the specified 3D vector.
Public methodStatic memberRotateTowards
Rotates a rotation which rotates from towards to.
Public methodSet
Sets the X, Y, Z, and W components of the current quaternion.
Public methodStatic memberSlerp
Spherically interpolates between two quaternions by t.
Public methodStatic memberSlerpUnclamped
Spherically interpolates between two quaternions by t. The parameter t is not calmped.
Public methodToString
Returns a string representation of the current object.
(Overrides ValueTypeToString.)
Top
See Also