DarkBASIC Professional Help File

DX11 BUILD TRANSLATION MATRIX

Builds a translation matrix using the spcified axii offsets.

Syntax

    Return Dword = DX11 BUILD TRANSLATION MATRIX(x, y, z, [resultMatrix])

Parameters

    x

> Float
> The offset along the X axis.

    y

> Float
> The offset along the Y axis.

    z

> Float
> The offset along the Z axis.

    [Optional] resultMatrix

> Dword
> The matrix to write the created translation matrix to. Can be omitted, in which case a temporary matrix holding the generated translation matrix will be returned.

Returns

The resultMatrix, if one was provided, or a newly created temporary matrix holding the resulting matrix otherwise.

See also

MATH Functions Menu
DX11 Function Categories