Vector2.getSign() - Mtax-Development/GML-OOP GitHub Wiki
Name |
Type |
Optional |
booleanSign? |
{bool} |
Yes |
{Vector2} | On error: {undefined}
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.