quaternion.conjugate

Edit

Returns the conjugate, or inverse, of a quaternion. This is a quaternion that does the opposite rotation of the original.

r = quaternion.conjugate(q)

Arguments

NameTypeDescription
qquaternion The quaternion to invert.

Returns

NameTypeDescription
rquaternion The conjugate of the quaternion.

Notes

This is shorthand for quaternion(-q.x, -q.y, -q.z, q.w).

See also