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

Function Documentation#

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

Builds a translation 4 * 4 matrix created from a vector of 3 components.

Parameters:
  • mInput matrix multiplied by this translation matrix.

  • v – Coordinates of a translation vector.

Returns:

Translation matrix.