Vec2:unpack

Returns the 2 components of the vector as numbers.

x, y = Vec2:unpack()

Arguments

None

Returns

NameTypeDescription
xnumber The x value.
ynumber The y value.

See also