gfm ~master (2021-03-12T16:19:32Z)
Home
Dub
Repo
Matrix.diag
gfm
math
matrix
Matrix
Makes a diagonal matrix from a vector.
struct
Matrix
(T, int R, int C)
@
nogc
static pure nothrow
static if
(
isSquare && R > 1
)
Matrix
diag
(
Vector
!(
T
,
R
)
v
)
Meta
Source
See Implementation
gfm
math
matrix
Matrix
aliases
_T
column_t
rotateX
rotateY
rotateZ
row_t
constructors
this
functions
column
frustum
inverse
opAssign
opBinary
opCast
opEquals
opOpAssign
opUnary
ptr
row
scale
toString
translate
transposed
manifest constants
_C
_R
static functions
constant
diag
fromColumns
fromRows
identity
lookAt
orthographic
perspective
rotateAxis
rotation
scaling
translation
unions
__anonymous
variables
isSquare
Makes a diagonal matrix from a vector.