Skip to content

CSMath.Quaternion

Albert Domenech edited this page Apr 6, 2025 · 3 revisions

Quaternion Class

Four dimensional vector which is used to efficiently rotate an object about the (x,y,z) vector by the angle theta, where w = cos(theta/2).

Definition

Namespace: CSMath

C#

DefaultMemberAttribute
public sealedstruct Quaternion

Properties

Returns Name Summary
UInt32 Dimension Get the dimension of the .
Double Item Value of the coordinate at the specified index.
Double W Specifies the rotation component of the Quaternion.
Double X Specifies the X-value of the vector component of the Quaternion.
Double Y Specifies the Y-value of the vector component of the Quaternion.
Double Z Specifies the Z-value of the vector component of the Quaternion.

Methods

Returns Name Summary
Boolean Equals(CSMath.Quaternion, System.Int32) Indicates whether the current object is equal to another object of the same type.
Boolean Equals(CSMath.Quaternion)
XYZ ToEulerAngles Get the Euler angles, in radians, for this quaternion.
Matrix4 ToMatrix Create a rotation matrix
String ToString
Clone this wiki locally