DarkBASIC Professional Help File

DX11 CREATE TEMP MATRIX

Creates a new temporary matrix. Its initial values can either be provided to this function or not;
if they are omitted, the matrix will be initialized to all 0.0 components.
A temporary matrix is very fast to create on the fly and can be used to chain several math functions together
without having to store an intermediary result for each step along the way.
All temporary matrixs / matrices are released when you call DX11 SYNC; you don't need to keep track of and release them manually.

Syntax

    Return Dword = DX11 CREATE TEMP MATRIX([_11], [_12], [_13], [_14], [_21], [_22], [_23], [_24], [_31], [_32], [_33], [_34], [_41], [_42], [_43], [_44])

Parameters

    [Optional] _11

> Float
> The initial value of row 1, col 1 of the created matrix.

    [Optional] _12

> Float
> The initial value of row 1, col 2 of the created matrix.

    [Optional] _13

> Float
> The initial value of row 1, col 3 of the created matrix.

    [Optional] _14

> Float
> The initial value of row 1, col 4 of the created matrix.

    [Optional] _21

> Float
> The initial value of row 2, col 1 of the created matrix.

    [Optional] _22

> Float
> The initial value of row 2, col 2 of the created matrix.

    [Optional] _23

> Float
> The initial value of row 2, col 3 of the created matrix.

    [Optional] _24

> Float
> The initial value of row 2, col 4 of the created matrix.

    [Optional] _31

> Float
> The initial value of row 3, col 1 of the created matrix.

    [Optional] _32

> Float
> The initial value of row 3, col 2 of the created matrix.

    [Optional] _33

> Float
> The initial value of row 3, col 3 of the created matrix.

    [Optional] _34

> Float
> The initial value of row 3, col 4 of the created matrix.

    [Optional] _41

> Float
> The initial value of row 4, col 1 of the created matrix.

    [Optional] _42

> Float
> The initial value of row 4, col 2 of the created matrix.

    [Optional] _43

> Float
> The initial value of row 4, col 3 of the created matrix.

    [Optional] _44

> Float
> The initial value of row 4, col 4 of the created matrix.

Returns

The created matrix.

See also

MATH Functions Menu
DX11 Function Categories