inmath ~master (2022-05-26T00:17:45.8140456)
Dub
Repo
Matrix.translation
inmath
linalg
Matrix
Returns a translation matrix (3x3 and 4x4 matrices).
Matrix
translation
(mt x, mt y, mt z)
struct
Matrix
(type, int rows_, int cols_)
@
safe
pure nothrow static
static if
(
(rows == cols) && (rows >= 3) && (rows <= 4)
)
Matrix
translation
(
mt
x
,
mt
y
,
mt
z
)
if
(
(
rows_
> 0
)
&&
(
cols_
> 0
)
)
Matrix
translation
(Vector!(mt, 3) v)
void
translation
(mt[] values)
void
translation
(Matrix mat)
Matrix
translation
()
Meta
Source
See Implementation
inmath
linalg
Matrix
aliases
mt
ok
constructors
this
functions
clear
det
inverse
invert
isFinite
makeIdentity
opBinary
opBinaryRight
opOpAssign
ptr
rotate
rotateX
rotateY
rotateZ
scale
toPrettyString
toString
translate
transpose
transposed
static functions
identity
isCompatibleMatrixImpl
isCompatibleVectorImpl
lookAt
orthographic
orthographicInverse
perspective
persperctiveInverse
rotation
scaling
translation
xRotation
yRotation
zRotation
static variables
cols
rows
templates
isCompatibleMatrix
isCompatibleVector
variables
matrix
Returns a translation matrix (3x3 and 4x4 matrices).