extend

function

extend(_z)

Description

Creates a new Vec3 from self and the given z value.

Arguments

Name Type Description
_z real The z component of the vector.

Returns

vec3 Extended vec2 self by z

Example

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.