DarkBASIC Professional Help File

DX11 CREATE VECTOR2

Creates a new vector2 instance. 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.

Syntax

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