Maximize

function

Maximize(_v)

Description

Creates a new vector where each component is the maximum component from this vector and vector _v.

Arguments

Name Type Description
_v Struct.BBMOD_Vec2 The other vector.

Returns

Struct.BBMOD_Vec2 The created vector.

Example

var _v1 = new BBMOD_Vec2(1.0, 4.0);
var _v2 = new BBMOD_Vec2(2.0, 3.0);
var _vMax = _v1.Maximize(_v2); // Equals to BBMOD_Vec2(2.0, 4.0)
Do you find this page helpful?

Copyright © 2022, BlueBurn. Built on November 16, 2022 using GMDoc.