DarkBASIC Professional Help File

DX11 MULTIPLY VECTOR3

Multiplies the provided vector3's.
If an output vector is provided, the resulting vector of the multiplication is stored to that and it is also returned; if the output parameter
is omitted, a temporary vector is created and returned.
Take note that temporary vectors are automatically deleted at the next call to DX11 SYNC. If you will need the resulting
vector for longer than that, you should use DX11 CREATE VECTOR3 to create one and then use that as the output parameter to this function.

Syntax

    Return Dword = DX11 MULTIPLY VECTOR3(vectorA, vectorB, [resultVector])

Parameters

    vectorA

> Dword
> The first vector3 to be multiplied with the other.

    vectorB

> Dword
> The second vector3 to be multiplied with the first.

    [Optional] resultVector

> Dword
> The resulting vector will be stored here; this may be the same as one of the source vector if you like. Omit to create and return a temporary vector holding the result.

Returns

The resultVector, if one was provided, or the temporary vector created to hold the result otherwise. This approach allows you to chain multiple vector / matrix math functions.

See also

MATH Functions Menu
DX11 Function Categories