CSMath.Quaternion - DomCR/ACadSharp GitHub Wiki
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#
public sealedstruct Quaternion
Properties
Returns | Name | Summary |
---|---|---|
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) | |
Matrix4 |
ToMatrix | Create a rotation matrix |
String |
ToString |