function
sub(_vector)
Substracts the specified vector from this vector.
Name | Type | Description |
---|---|---|
_vector | vec3 |
The vector being substracted. |
vec3
self
vec1 = new Vec3(10, 10, 10);
vec2 = new Vec3(8, 6, 9);
vec1.sub(vec2);
show_debug_message(vec1); // Result: { x : 2, y : 4, z : 1 }
Copyright © 2020, eL-Falso. Built on December 14, 2020 using GMDoc.