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