DarkBASIC Professional Help File

DX11 GET MATRIX TRANSPOSE

Computes the transpose of the given matrix.
The matrix will be copied to the provided matrix (which will also be returned by this function) or
it will be put into a temporary matrix which is returned and only valid throughout the current frame.

Syntax

    Return Dword = DX11 GET MATRIX TRANSPOSE(sourceMatrix, [resultMatrix])

Parameters

    sourceMatrix

> Dword
> The matrix to compute the transpose of.

    [Optional] resultMatrix

> Dword
> The matrix to write the transpose of the source matrix to. Can be omitted in favor of creating a temporary result matrix instead.

Returns

The resulting matrix (the transpose of sourceMatrix); either the resultMatrix argument unless omitted, or a temporary matrix. .

See also

MATH Functions Menu
DX11 Function Categories