function
extend(_z)
Creates a new Vec3 from self and the given z value.
Name | Type | Description |
---|---|---|
_z | real |
The z component of the vector. |
vec3
Extended vec2 self by z
vec1 = new Vec2(2, 4);
vec2 = vec1.extend(6);
show_debug_message(vec2); // Result: { x : 2, y : 4, z : 6 }
Copyright © 2020, eL-Falso. Built on December 14, 2020 using GMDoc.