translationMatrix

Create a translation matrix given a translation vector

Matrix!(T, 4)
translationMatrix
(
T
)
(
Vector!(T, 3) v
)

Examples

Matrix4f tm = translationMatrix(Vector3f(3.0f, 5.0f, 2.5f));
Vector3f t = translation(tm);
assert(t == Vector3f(3.0f, 5.0f, 2.5f));

Meta