Matrix.identity

Returns a identity matrix.

struct Matrix(type, int rows_, int cols_)
@safe pure nothrow static
static if(rows == cols)
identity
()
if (
(rows_ > 0) &&
(cols_ > 0)
)

Meta