Matrix.scaling

Make a scaling matrix.

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

Examples

Meta