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