Vector2.getSign() - Mtax-Development/GML-OOP GitHub Wiki

Argument

Name
Type
Optional
booleanSign?
Yes

Returns

{Vector2} | On error: {undefined}

Description

Return a Vector2 with each respective value representing the sign of the number: -1 for a negative number, 0 for itself and 1 for a positive number. If the result is specified to be returned as the boolean sign, -1 will be set for 0 as well.

⚠️ **GitHub.com Fallback** ⚠️