liberty-engine v0.0.14-beta.2 (2018-07-02T09:50:23Z)
Dub
Repo
Matrix.translation
liberty
math
matrix
Matrix
Make a translation matrix.
struct
Matrix
(T, ubyte R, ubyte C = R, MatrixOrder O = CurrentMatrixOrder)
static pure nothrow @
safe
@
nogc
static if
(
O == MatrixOrder.RowMajor
)
static if
(
isSquare && R > 2
)
Matrix
translation
(
Vector
!(
T
,
R
- 1)
v
)
if
(
R
>= 2 &&
R
<= 4
&&
C
>= 2
&&
C
<= 4
)
Examples
Meta
Source
See Implementation
liberty
math
matrix
Matrix
aliases
ColumnType
RowType
rotateXAxix
rotateYAxis
rotateZAxis
type
constructors
this
functions
column
inverse
opBinary
opCast
opEquals
opOpAssign
opUnary
ptr
rotate
rotateX
rotateY
rotateZ
scale
translate
transposed
manifest constants
columnCount
order
rowCount
static functions
constant
diag
fromColumns
fromRows
identity
lookAt
orthographic
perspective
rotateAxis
rotation
scaling
translation
unions
__anonymous
variables
isSquare
Make a translation matrix.