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

Function Documentation#

template<typename T>
constexpr Mat<4, 4, T> TRAP::Math::Recompose(const Vec<3, T> &position, const Vec<3, T> &rotation, const Vec<3, T> &scale)#

Recomopse a matrix from its position, rotation and scale components.

Parameters:
  • position – Position to recompose.

  • rotation – Rotation (in euler angles, radians) to recompose.

  • scale – Scale to recompose.

Returns:

Recomposed matrix.