Quaternion Members

The following tables list the members exposed by the Quaternion type.

Public Constructors

Name Description
Public Method Quaternion Overloaded. Initializes a new instance of Quaternion.

Public Fields

Name Description
Public Field W Specifies the rotation component of the quaternion.
Public Field X Specifies the x-value of the vector component of the quaternion.
Public Field Y Specifies the y-value of the vector component of the quaternion.
Public Field Z Specifies the z-value of the vector component of the quaternion.

Public Properties

Name Description
Public Property Static Identity Returns a Quaternion representing no rotation.

Public Methods

Name Description
Public Method Static Add Overloaded. Adds two Quaternions.
Public Method Static Concatenate Overloaded. Concatenates two Quaternions; the result represents the first rotation followed by the second rotation.
Public Method Conjugate Overloaded. Calculates the conjugate of a Quaternion.
Public Method Static CreateFromAxisAngle Overloaded. Creates a Quaternion from a vector and an angle to rotate about the vector.
Public Method Static CreateFromRotationMatrix Overloaded. Creates a Quaternion from a rotation Matrix.
Public Method Static CreateFromYawPitchRoll Overloaded. Creates a new Quaternion from specified yaw, pitch, and roll angles.
Public Method Static Divide Overloaded. Divides a Quaternion by another Quaternion.
Public Method Static Dot Overloaded. Calculates the dot product of two Quaternions.
Public Method Equals Overloaded. Returns a value that indicates whether the current instance is equal to a specified object.
Public Method GetHashCode Get the hash code of this object.
Public Method GetType (Inherited from Object.)
Public Method Static Inverse Overloaded. Returns the inverse of a Quaternion.
Public Method Length Calculates the length of a Quaternion.
Public Method LengthSquared Calculates the length squared of a Quaternion.
Public Method Static Lerp Overloaded. Linearly interpolates between two quaternions.
Public Method Static Multiply Overloaded. Multiplies a quaternion by a scalar or another quaternion.
Public Method Static Negate Overloaded. Flips the sign of each component of the quaternion.
Public Method Normalize Overloaded. Divides each component of a quaternion by the length of the quaternion.
Public Method Static op_Addition Adds two Quaternions.
Public Method Static op_Division Divides a Quaternion by another Quaternion.
Public Method Static op_Equality Compares two Quaternions for equality.
Public Method Static op_Inequality Compare two Quaternions for inequality.
Public Method Static op_Multiply Overloaded. Multiplies a quaternion by a scalar or another quaternion.
Public Method Static op_Subtraction Subtracts a quaternion from another quaternion.
Public Method Static op_UnaryNegation Flips the sign of each component of the quaternion.
Public Method Static Slerp Overloaded. Interpolates between two quaternions, using spherical linear interpolation.
Public Method Static Subtract Overloaded. Subtracts a quaternion from another quaternion.
Public Method ToString Retireves a string representation of the current object.

Protected Methods

Name Description
Protected Method Finalize (Inherited from Object.)
Protected Method MemberwiseClone (Inherited from Object.)

See Also

Reference

Quaternion Structure
Microsoft.Xna.Framework Namespace