Quaternion

Undocumented in source.

Constructors

this
this(float x, float y, float z, float w)

Creates a new Quaternion, in which initial values are X, Y, Z and W.

this
this(float x, float y, float z)

Creates a new Quaternion, in which initial values are X, Y, Z and 0.

this
this(float x, float y)

Creates a new Quaternion, in which initial values are X, Y, 0 and 0.

this
this(float x)

Creates a new Quaternion, in which all initial values are X.

Members

Functions

ForwardDirection
Vector3 ForwardDirection()
Undocumented in source. Be warned that the author may not have intended to support it.
LeftDirection
Vector3 LeftDirection()
Undocumented in source. Be warned that the author may not have intended to support it.
Normalized
Quaternion Normalized()
Undocumented in source. Be warned that the author may not have intended to support it.
Reorient
void Reorient(Vector3 axis, float angle)
Undocumented in source. Be warned that the author may not have intended to support it.
Rotate
void Rotate(Vector3 axis, T theta)
Undocumented in source. Be warned that the author may not have intended to support it.
UpDirection
Vector3 UpDirection()
Undocumented in source. Be warned that the author may not have intended to support it.
W
float W()

The W component.

W
void W(float value)
Undocumented in source. Be warned that the author may not have intended to support it.
X
float X()

The X component.

X
void X(float value)
Undocumented in source. Be warned that the author may not have intended to support it.
Y
float Y()

The Y component.

Y
void Y(float value)
Undocumented in source. Be warned that the author may not have intended to support it.
Z
float Z()

The Z component.

Z
void Z(float value)
Undocumented in source. Be warned that the author may not have intended to support it.
opBinary
Quaternion opBinary(T2 other)
Undocumented in source. Be warned that the author may not have intended to support it.
toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

EulerToQuaternion
Quaternion EulerToQuaternion(Vector3 euler)
Undocumented in source. Be warned that the author may not have intended to support it.
FromMatrix
Quaternion FromMatrix(Matrix4x4 mat)
Undocumented in source. Be warned that the author may not have intended to support it.
Identity
Quaternion Identity()
Undocumented in source. Be warned that the author may not have intended to support it.
Rotated
Quaternion Rotated(Vector3 axis, T theta)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta