- cubicSlerp
Quaternion cubicSlerp(Quaternion q, Quaternion prep, Quaternion postq, real_t t)
Undocumented in source. Be warned that the author may not have intended to support it.
- dot
real_t dot(Quaternion q)
Undocumented in source. Be warned that the author may not have intended to support it.
- getAxisAndAngle
void getAxisAndAngle(Vector3 r_axis, real_t r_angle)
Undocumented in source. Be warned that the author may not have intended to support it.
- getEuler
Vector3 getEuler()
Undocumented in source. Be warned that the author may not have intended to support it.
- inverse
Quaternion inverse()
Undocumented in source. Be warned that the author may not have intended to support it.
- length
real_t length()
Undocumented in source. Be warned that the author may not have intended to support it.
- lengthSquared
real_t lengthSquared()
Undocumented in source. Be warned that the author may not have intended to support it.
- normalize
void normalize()
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.
- opBinary
Quaternion opBinary(Vector3 v)
Undocumented in source. Be warned that the author may not have intended to support it.
- opBinary
Quaternion opBinary(Quaternion q2)
Undocumented in source. Be warned that the author may not have intended to support it.
- opBinary
Quaternion opBinary(Quaternion q2)
Undocumented in source. Be warned that the author may not have intended to support it.
- opBinary
Quaternion opBinary(real_t s)
Undocumented in source. Be warned that the author may not have intended to support it.
- opBinary
Quaternion opBinary(Quaternion q2)
Undocumented in source. Be warned that the author may not have intended to support it.
- opBinary
Quaternion opBinary(real_t s)
Undocumented in source. Be warned that the author may not have intended to support it.
- opOpAssign
void opOpAssign(Quaternion q)
Undocumented in source. Be warned that the author may not have intended to support it.
- opOpAssign
void opOpAssign(Quaternion q)
Undocumented in source. Be warned that the author may not have intended to support it.
- opOpAssign
void opOpAssign(Quaternion q)
Undocumented in source. Be warned that the author may not have intended to support it.
- opOpAssign
void opOpAssign(real_t s)
Undocumented in source. Be warned that the author may not have intended to support it.
- opOpAssign
void opOpAssign(real_t s)
Undocumented in source. Be warned that the author may not have intended to support it.
- opUnary
Quaternion opUnary()
Undocumented in source. Be warned that the author may not have intended to support it.
- set
void set(real_t p_x, real_t p_y, real_t p_z, real_t p_w)
Undocumented in source. Be warned that the author may not have intended to support it.
- setEuler
void setEuler(Vector3 p_euler)
Undocumented in source. Be warned that the author may not have intended to support it.
- slerp
Quaternion slerp(Quaternion q, real_t t)
Undocumented in source. Be warned that the author may not have intended to support it.
- slerpni
Quaternion slerpni(Quaternion q, real_t t)
Undocumented in source. Be warned that the author may not have intended to support it.
- xform
Vector3 xform(Vector3 v)
Undocumented in source. Be warned that the author may not have intended to support it.
A 4-dimensional vector representing a rotation.
The vector represents a 4 dimensional complex number where multiplication of the basis elements is not commutative (multiplying i with j gives a different result than multiplying j with i).
Multiplying quaternions reproduces rotation sequences. However quaternions need to be often renormalized, or else they suffer from precision issues.
It can be used to perform SLERP (spherical-linear interpolation) between two rotations.