Matrix.translate

Returns translation matrix.

struct Matrix(T, uint U, uint V)
static
static if(U == V)
static if(U == 3 || U == 4)
translate
(
Vector!(T, U - 1) vec
)
if (
__traits(isArithmetic, T)
)

Parameters

vec Vector!(T, U - 1)

translation vector

Return Value

Type: Matrix

translation matrix

Meta