BBMOD_Vec2.Copy

A function defined in BBMOD_Vec2.gml

Copy(_dest)

Description

Copies components of the vector to the _dest vector.

Arguments

Name Type Description
_dest Struct.BBMOD_Vec2 The destination vector.

Returns

Struct.BBMOD_Vec2 Returns self.

Example

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

Copyright © 2024, BlueBurn. Built on January 21, 2024 using GMDoc.