DarkBASIC Professional Help File

DX11 CREATE MATRIX

Creates a new matrix instance. Its initial values can either be provided to this function or not;
if they are omitted, the matrix will be initialized to the identity matrix.

Syntax

    Return Dword = DX11 CREATE 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