Template Function TRAP::Math::Rotate(T, const Vec<3, T>&)#

Function Documentation#

template<typename T>
constexpr Mat<4, 4, T> TRAP::Math::Rotate(T angleInRadians, const Vec<3, T> &v)#

Builds a rotation 4 * 4 matrix created from an axis of 3 scalars and an angle expressed in radians.

Parameters:
  • angleInRadians – Rotation angle expressed in radians.

  • v – Scalar

Returns:

Rotation matrix.