Matrix.identity

Constant Identity matrix (diagonal values 1).

struct Matrix(T, uint numColumns, uint numRows = numColumns)
static if(isSquare)
enum identity = fromDiagonal(1);

Meta