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

Function Documentation#

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

Builds a scale 4 * 4 matrix created from 3 scalars.

Parameters:
  • mInput matrix multiplied by this scale matrix.

  • v – Ratio of scaling for each axis.

Returns:

Scaled matrix.