Upset Baby Games

Upset Baby Games

Navigation

vector2

Syntax:

vector2(value);
Argument name Type Description
value any value to convert into a vector2

Returns: (vector2)

Description:

This function can be used to turn a value into a 2D vector. Scalars will fill up the x-column and any remaining units will be set to 0. Arrays will be converted, if possible.

Note: A vector2 is simply a 1D array with 2 real values.