Vector4.absoluteDifference() - Mtax-Development/GML-OOP GitHub Wiki

Argument

Name
Type
Optional
value?
Yes

Returns

{Vector2|Vector4} | On error: {undefined}

Description

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.

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