Template Function TRAP::Math::LookAt#
Function Documentation#
-
template<typename T>
constexpr Mat<4, 4, T> TRAP::Math::LookAt(const Vec<3, T> &eye, const Vec<3, T> ¢er, const Vec<3, T> &up)# Build a look at view matrix.
- Parameters:
eye – Position of the camera.
center – Position where the camera is looking at.
up – Normalized up vector, how the camera is oriented. Typically (0, 0, 1).
- Returns:
Look at view matrix.