Skip to content

Function: create2dVector()

ts
function create2dVector(x: number, y: number): vector2;

Create a 2D vector.

Parameters

ParameterTypeDescription
xnumberX coordinate.
ynumberY coordinate.

Returns

vector2

New vector with the provided coordinates.