Vector2.absoluteDifference() - Mtax-Development/GML-OOP GitHub Wiki
Name |
Type |
Optional |
value? |
Yes |
{Vector2|Vector4} | On error: {undefined}
Return the difference using values of this Vector2. If a value was specified, a constructor with the differences between their respective values will be returned, either as a Vector4 if specified as such or as a Vector2 otherwise. If a value was not specified, a number representing the difference between values of this Vector2 will be returned. This calculation ignores order of substraction, always returning a non-negative number.