Optional
x: numberOptional
y: numberOptional
z: numberOptional
w: numberGet the quaternion conjugate
Optional
target: QuaternionCopies value of source to this quaternion.
this
Rotate an absolute orientation quaternion given an angular velocity and a time step.
Optional
target: QuaternionGet the inverse quaternion rotation.
Optional
target: QuaternionMultiply the quaternion with an other quaternion.
Optional
target: QuaternionNormalize the quaternion. Note that this changes the values of the quaternion.
Approximation of quaternion normalization. Works best when quat is already almost-normalized.
unphased, https://github.com/unphased
Set the value of the quaternion.
Set the quaternion components given an axis and an angle in radians.
Set the quaternion components given Euler angle representation.
Optional
order: stringThe order to apply angles: 'XYZ' or 'YXZ' or any other combination.
See MathWorks reference
Set the quaternion value given two vectors. The resulting rotation will be the needed rotation to rotate u to v.
Performs a spherical linear interpolation between two quat
second operand
interpolation amount between the self quaternion and toQuat
Optional
target: QuaternionA quaternion to store the result in. If not provided, a new one will be created.
The "target" object
Convert the quaternion to euler angle representation. Order: YZX, as this page describes: https://www.euclideanspace.com/maths/standards/index.htm
Optional
order: stringThree-character string, defaults to "YZX"
A Quaternion describes a rotation in 3D space. The Quaternion is mathematically defined as Q = xi + yj + z*k + w, where (i,j,k) are imaginary basis vectors. (x,y,z) can be seen as a vector related to the axis of rotation, while the real multiplier, w, is related to the amount of rotation.
Param: x
Multiplier of the imaginary basis vector i.
Param: y
Multiplier of the imaginary basis vector j.
Param: z
Multiplier of the imaginary basis vector k.
Param: w
Multiplier of the real part.
See
http://en.wikipedia.org/wiki/Quaternion