function
add(_vector)
Adds the specified vector to this vector.
Name | Type | Description |
---|---|---|
_vector | vec2 |
The vector being added. |
vec2
self
vec1 = new Vec2(10, 10);
vec2 = new Vec2(8, 6);
vec1.add(vec2);
show_debug_message(vec1); // Result: { x : 18, y : 16 }
Copyright © 2020, eL-Falso. Built on December 14, 2020 using GMDoc.