Template Function std::get(TRAP::Math::tQuat<T>&&)#

Function Documentation#

template<usize I, typename T>
constexpr T &&std::get(TRAP::Math::tQuat<T> &&q) noexcept#

Extracts the Ith element from the quaternion. I must be an integer value in range [0, 4). This is enforced at compile time!

Parameters:

q – Quaternion whose contents to extract.

Returns:

A reference to the Ith element of q.