Matrix.identity

struct Matrix(E, uint rows_, uint cols_, Layout layout = Layout.rowMajor)
static @property
static if(rows == cols)
identity
()
if (
rows_ >= 1 &&
cols_ >= 1
)

Return Value

Type: Matrix

Identity Matrix.

Meta