﻿Quaternion Methods  # Quaternion Methods

The Quaternion type exposes the following members. Methods
NameDescription  Angle
Returns the angle (in degrees) between two quaternions.  AngleAxis
Creates a rotation which rotates the specified angle degrees around the specified axis.  Dot
Returns the dot product of two quaternions. Equals(Object)
Determines whether the specified object is equal to the current object.
(Overrides ValueTypeEquals(Object).)  Equals(Quaternion, Quaternion)
Specifies whether two quaternions are approximately equal.  Euler(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).  Euler(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).  FromToRotation
Creates a rotation which rotates from towards to. GetHashCode
Returns the hash code of the current object.
(Overrides ValueTypeGetHashCode.) GetType (Inherited from Object.)  Inverse
Returns the inverse of rotation.  Lerp
Linearly interpolates between two quaternions by t.  LookRotation(Vector3D)
Creates a rotation with the specified forward and upwards directions.  LookRotation(Vector3D, Vector3D)
Creates a rotation with the specified forward and upwards directions.  Multiply(Quaternion, Quaternion)
Multiplies a vector with another vector.  Multiply(Quaternion, Vector2D)
Multiplies the given rotation around the given point.  Multiply(Quaternion, Vector3D)
Multiplies the given rotation around the given point.  Negate
Negates every component of the specified quaternion. Normalize
Makes the current vector have a magnitude of 1.  Normalize(Quaternion)
Makes the specified quaternion have a magnitude of 1. Rotate
Rotates the current quaternion according to the specified 3D vector.  RotateTowards
Rotates a rotation which rotates from towards to. Set
Sets the X, Y, Z, and W components of the current quaternion.  Slerp
Spherically interpolates between two quaternions by t.  SlerpUnclamped
Spherically interpolates between two quaternions by t. The parameter t is not calmped. ToString
Returns a string representation of the current object.
(Overrides ValueTypeToString.)
Top See Also