Matrix.translation

Make a translation matrix.

struct Matrix(T, ubyte R, ubyte C = R)
static
static if(isSquare && R > 2)
translation
(
Vector!(T, R - 1) v
)
if (
R >= 2 &&
R <= 4
&&
C >= 2
&&
C <= 4
)

Examples

Meta