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

Function Documentation#

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

Transforms a matrix with a translation 4 * 4 matrix created from 3 scalars.

Parameters:

v – Coordinate of a translation vector.

Returns:

Transformation matrix.