A function defined in BBMOD_Vec2.gml
SubSelf(_v)
Subtracts vector _v
from this vector and stores the result into self
.
Name | Type | Description |
---|---|---|
_v | Struct.BBMOD_Vec2 |
The vector to subtract from this one. |
Struct.BBMOD_Vec2
Returns self
.
var _v1 = new BBMOD_Vec2(1.0, 2.0);
var _v2 = new BBMOD_Vec2(3.0, 4.0);
_v1.SubSelf(_v); // Equals to BBMOD_Vec2(-2.0, -2.0)
Copyright © 2024, BlueBurn. Built on September 07, 2024 using GMDoc.