function
set(_x, _y, _z)
Replaces all three components of the vector with new ones.
Name | Type | Description |
---|---|---|
_x | real |
The x component of the vector. |
_y | real |
The y component of the vector. |
_z | real |
The z component of the vector. |
vec2
self
vec1 = new Vec2(10, 5, 10);
show_debug_message(vec1); // Result: { x : 10, y : 5, z : 10 }
vec1.set(13, 8, 7);
show_debug_message(vec1); // Result: { x : 13, y : 8 , z : 7 }
Copyright © 2020, eL-Falso. Built on December 14, 2020 using GMDoc.