function
dot(_vector)
Returns the dot product of this vector and the specified vector.
Name | Type | Description |
---|---|---|
_vector | vec2 |
The vector to compute the dot product with. |
real
The dot product.
vec1 = new Vec2(5, 5);
vec2 = new Vec2(10, 10);
show_debug_message(vec1.dot(vec2)); // Result: 100
Copyright © 2020, eL-Falso. Built on December 14, 2020 using GMDoc.