Skip to content

CSMath.Quaternion

Albert Domenech edited this page Apr 29, 2024 · 2 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).

Properties

Name Summary
X Specifies the X-value of the vector component of the Quaternion.
Y Specifies the Y-value of the vector component of the Quaternion.
Z Specifies the Z-value of the vector component of the Quaternion.
W Specifies the rotation component of the Quaternion.

Methods

Name Summary
ToMatrix Create a rotation matrix
ToString
Equals
Equals Indicates whether the current object is equal to another object of the same type.
Clone this wiki locally