Copy

function

Copy(_dest)

Description

Copies components of the vector to the _dest vector.

Arguments

Name Type Description
_dest Struct.BBMOD_Vec3 The destination vector.

Returns

Struct.BBMOD_Vec3 Returns self.

Example

var _v1 = new BBMOD_Vec3(1.0, 2.0, 3.0);
var _v2 = new BBMOD_Vec3(4.0, 5.0, 6.0);
show_debug_message(_v2) // Prints { X: 4.0, Y: 5.0, Z: 6.0 }
_v1.Copy(_v2);
show_debug_message(_v2) // Prints { X: 1.0, Y: 2.0, Z: 3.0 }
Do you find this page helpful?

Copyright © 2022, BlueBurn. Built on May 18, 2022 using GMDoc.