Vec2:sub

Edit

Subtracts a vector or a number from the vector.



Arguments

NameTypeDescription
uVec2 The other vector.

Returns

NameTypeDescription
vVec2 The original vector.

Arguments

NameTypeDefaultDescription
xnumber A value to subtract from x component.
ynumberx A value to subtract from y component.

Returns

NameTypeDescription
vVec2 The original vector.

See also