Template Function TRAP::Math::Inverse(const tQuat<T>&)#

Function Documentation#

template<typename T>
constexpr tQuat<T> TRAP::Math::Inverse(const tQuat<T> &q)#

Calculate the inverse of a quaternion.

Parameters:

q – Specifies the quaternion of which to take the inverse.

Returns:

Inverted quaternion.