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

Arguments

Name
Type
Optional
other
No
normalize?
Yes

Returns

{real} | On error: {undefined}

Description

Return the sum of each value of this and other Vector2 being multiplied by their respective other value, which is an expression of the angular reliationship between its two points. The returned value can be normalized, which will place it between -1 and 1.

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