gl3n v1.3.1 (2016-01-07T21:01:40Z)
Home
Dub
Repo
Matrix.translation
gl3n
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)
Meta
Source
See Implementation
gl3n
linalg
Matrix
aliases
mt
ok
toPrettyString
toString
constructors
this
functions
clear
get_rotation
get_scale
get_translation
invert
make_identity
opBinary
opBinaryRight
opCast
opOpAssign
rotate
rotatex
rotatey
rotatez
scale
set_rotation
set_scale
set_translation
translate
transpose
properties
as_pretty_string
as_string
det
identity
inverse
isFinite
transposed
value_ptr
static functions
isCompatibleMatrixImpl
isCompatibleVectorImpl
look_at
orthographic
orthographic_inverse
perspective
perspective_inverse
rotation
scaling
translation
xrotation
yrotation
zrotation
static variables
cols
rows
templates
isCompatibleMatrix
isCompatibleVector
variables
matrix
Returns a translation matrix (3x3 and 4x4 matrices).