Calc magnitude of the quaternion.
Calc norm of the quaternion.
An alias for magnitude
.
Returns values of the quaternion.
Returns w value of the vector.
Set the value
as new w.
Returns x value of the vector.
Set the value
as new x.
Returns y value of the vector.
Set the value
as new y.
Returns z value of the vector.
Set the value
as new z.
Adds the other
to the quaternion and returns the sum.
This method does not mutate the quaternion.
Calculates dot product.
Multiplies the quaternion by scalar
and returns the product.
This method does not mutate the quaternion.
Returns a normalized quaternion.
Calculates spherical linear interpolation(also known as Slerp) and returns new Quaternion
between the quaternion and the other.
0.0 <= t <= 1.0
Does not work currently. slerp chooses shorter angle regardless of this value.
Convert the quaternion to a rotation matrix.
Returns values as String
.
Create a rotation quaternion around normalizedAxis
.
normalizedAxis
must be normalized.
Generated using TypeDoc
Quaternion which is 4-dimensional complex number. See Wikipedia.