Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Quaternion Structure

.NET Framework (current version)
 

Represents a vector that is used to encode three-dimensional physical rotations.

Namespace:   System.Numerics
Assembly:  System.Numerics (in System.Numerics.dll)

public struct Quaternion : IEquatable<Quaternion>

NameDescription
System_CAPS_pubmethodQuaternion(Single, Single, Single, Single)

Constructs a quaternion from the specified components.

System_CAPS_pubmethodQuaternion(Vector3, Single)

Creates a quaternion from the specified vector and rotation parts.

NameDescription
System_CAPS_pubpropertySystem_CAPS_staticIdentity

Gets a quaternion that represents no rotation.

System_CAPS_pubpropertyIsIdentity

Gets a value that indicates whether the current instance is the identity quaternion.

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticAdd(Quaternion, Quaternion)

Adds each element in one quaternion with its corresponding element in a second quaternion.

System_CAPS_pubmethodSystem_CAPS_staticConcatenate(Quaternion, Quaternion)

Concatenates two quaternions.

System_CAPS_pubmethodSystem_CAPS_staticConjugate(Quaternion)

Returns the conjugate of a specified quaternion.

System_CAPS_pubmethodSystem_CAPS_staticCreateFromAxisAngle(Vector3, Single)

Creates a quaternion from a vector and an angle to rotate about the vector.

System_CAPS_pubmethodSystem_CAPS_staticCreateFromRotationMatrix(Matrix4x4)

Creates a quaternion from the specified rotation matrix.

System_CAPS_pubmethodSystem_CAPS_staticCreateFromYawPitchRoll(Single, Single, Single)

Creates a new quaternion from the given yaw, pitch, and roll.

System_CAPS_pubmethodSystem_CAPS_staticDivide(Quaternion, Quaternion)

Divides one quaternion by a second quaternion.

System_CAPS_pubmethodSystem_CAPS_staticDot(Quaternion, Quaternion)

Calculates the dot product of two quaternions.

System_CAPS_pubmethodEquals(Object)

Returns a value that indicates whether this instance and a specified object are equal. (Overrides ValueType.Equals(Object).)

System_CAPS_pubmethodEquals(Quaternion)

Returns a value that indicates whether this instance and another quaternion are equal.

System_CAPS_pubmethodGetHashCode()

Returns the hash code for this instance. (Overrides ValueType.GetHashCode().)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticInverse(Quaternion)

Returns the inverse of a quaternion.

System_CAPS_pubmethodLength()

Calculates the length of the quaternion.

System_CAPS_pubmethodLengthSquared()

Calculates the squared length of the quaternion.

System_CAPS_pubmethodSystem_CAPS_staticLerp(Quaternion, Quaternion, Single)

Performs a linear interpolation between two quaternions based on a value that specifies the weighting of the second quaternion.

System_CAPS_pubmethodSystem_CAPS_staticMultiply(Quaternion, Quaternion)

Returns the quaternion that results from multiplying two quaternions together.

System_CAPS_pubmethodSystem_CAPS_staticMultiply(Quaternion, Single)

Returns the quaternion that results from scaling all the components of a specified quaternion by a scalar factor.

System_CAPS_pubmethodSystem_CAPS_staticNegate(Quaternion)

Reverses the sign of each component of the quaternion.

System_CAPS_pubmethodSystem_CAPS_staticNormalize(Quaternion)

Divides each component of a specified Quaternion by its length.

System_CAPS_pubmethodSystem_CAPS_staticSlerp(Quaternion, Quaternion, Single)

Interpolates between two quaternions, using spherical linear interpolation.

System_CAPS_pubmethodSystem_CAPS_staticSubtract(Quaternion, Quaternion)

Subtracts each element in a second quaternion from its corresponding element in a first quaternion.

System_CAPS_pubmethodToString()

Returns a string that represents this quaternion. (Overrides ValueType.ToString().)

NameDescription
System_CAPS_pubfieldW

The rotation component of the quaternion.

System_CAPS_pubfieldX

The X value of the vector component of the quaternion.

System_CAPS_pubfieldY

The Y value of the vector component of the quaternion.

System_CAPS_pubfieldZ

The Z value of the vector component of the quaternion.

NameDescription
System_CAPS_puboperatorSystem_CAPS_staticAddition(Quaternion, Quaternion)

Adds each element in one quaternion with its corresponding element in a second quaternion.

System_CAPS_puboperatorSystem_CAPS_staticDivision(Quaternion, Quaternion)

Divides one quaternion by a second quaternion.

System_CAPS_puboperatorSystem_CAPS_staticEquality(Quaternion, Quaternion)

Returns a value that indicates whether two quaternions are equal.

System_CAPS_puboperatorSystem_CAPS_staticInequality(Quaternion, Quaternion)

Returns a value that indicates whether two quaternions are not equal.

System_CAPS_puboperatorSystem_CAPS_staticMultiply(Quaternion, Quaternion)

Returns the quaternion that results from multiplying two quaternions together.

System_CAPS_puboperatorSystem_CAPS_staticMultiply(Quaternion, Single)

Returns the quaternion that results from scaling all the components of a specified quaternion by a scalar factor.

System_CAPS_puboperatorSystem_CAPS_staticSubtraction(Quaternion, Quaternion)

Subtracts each element in a second quaternion from its corresponding element in a first quaternion.

System_CAPS_puboperatorSystem_CAPS_staticUnaryNegation(Quaternion)

Reverses the sign of each component of the quaternion.

The Quaternion structure is used to efficiently rotate an object about the (x,y,z) vector by the angle theta, where:

w = cos(theta/2)

Universal Windows Platform
Available since 10
.NET Framework
Available since 4.6

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: