BBMOD_Vec3.SubSelf

A function defined in BBMOD_Vec3.gml

SubSelf(_v)

Description

Subtracts vector _v from this vector and stores the result into self.

Arguments

Name Type Description
_v Struct.BBMOD_Vec3 The vector to subtract from this one.

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);
_v1.SubSelf(_v2); // Equals to BBMOD_Vec3(-3.0, -3.0, -3.0)
Do you find this page helpful?

Copyright © 2024, BlueBurn. Built on July 03, 2024 using GMDoc.