DarkBASIC Professional Help File

DX11 CREATE TEMP VECTOR2

Creates a new temporary vector2. Its initial values can either be provided to this function or not;
if they are omitted, the vector will be initialized to all 0.0 components.
A temporary vector 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 vectors / 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 VECTOR2([x], [y])

Parameters

    [Optional] x

> Float
> The initial X component of the created vector.

    [Optional] y

> Float
> The initial Y component of the created vector.

Returns

The created vector2.

See also

MATH Functions Menu
DX11 Function Categories