dvec v0.0.5 (2022-10-24T22:04:52Z)
Dub
Repo
Mat.identity
dvec
matrix
Mat
Gets an
identity matrix
.
struct
Mat
(T, size_t rowCount, size_t colCount)
static
static if
(
rowCount == colCount
)
Mat
!(
T
,
N
,
N
)
identity
(
)
if
(
isNumeric
!
T
&&
rowCount
> 0
&&
colCount
> 0
)
Return Value
Type:
Mat
!(
T
,
N
,
N
)
An identity matrix.
Meta
Source
See Implementation
dvec
matrix
Mat
aliases
N
constructors
this
functions
add
adjugate
cofactor
copy
det
div
getCol
getRow
inv
invertible
map
mul
opIndex
opIndexAssign
rotate
rotateX
rotateY
rotateZ
rowAdd
rowMultiply
rowSwitch
scale
setCol
setData
setRow
shear
sub
subMatrix
toString
translate
transpose
static functions
identity
static variables
HEIGHT
WIDTH
variables
data
Gets an identity matrix.