translate

Moves the matrix provided in the arguments along the given axes with the given values.

@safe nothrow pure
float[4][4]
translate
(
float[4][4] mat
,
float x
,
float y
,
float z
)

Parameters

mat float[4][4]

The matrix to be moved.

x float

X-axis move factor.

y float

Y-axis move factor.

z float

Z-axis move factor.

Return Value

Type: float[4][4]

Matrix that was previously cast in the matrix and is now moved by the function.

See Also

$(HREF https://en.wikipedia.org/wiki/Translation_(geometry), Translation (geometry) - Wikipedia)

$(TRANSLATE_IMG)

Meta