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

Function Documentation#

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

Transforms a matrix with a scale 4 * 4 matrix created from a vector of 3 components.

Parameters:

v – 3 Component vector.

Returns:

Scaled matrix.