Copy

function

Copy(_dest)

Description

Copies components of the vector to the _dest vector.

Arguments

Name Type Description
_dest Struct.BBMOD_Vec4 The destination vector.

Returns

Struct.BBMOD_Vec4 Returns self.

Example

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

Copyright © 2022, BlueBurn. Built on April 11, 2022 using GMDoc.