Template Function TRAP::Math::QuaternionLookAt#
Function Documentation#
-
template<typename T>
constexpr tQuat<T> TRAP::Math::QuaternionLookAt(const Vec<3, T> &direction, const Vec<3, T> &up)# Build a look at quaternion.
- Parameters:
direction – Desired forward direction. Needs to be normalized.
up – Up vector, how the camera is oriented. Typically (0, 1, 0).
- Returns:
Look at quaternion.