Vec2:unpack

Returns the 2 components of the vector as numbers.

x, y = Vec2:unpack()

Arguments

None

Returns

NameTypeDescription
xnumberThe x value.
ynumberThe y value.

See also