BBMOD_Vec2.Scale

A function defined in BBMOD_Vec2.gml

Scale(_s)

Description

Scales each component of the vector by _s and returns the result as a new vector.

Arguments

Name Type Description
_s Real The value to scale the components by.

Returns

Struct.BBMOD_Vec2 The created vector.

Example

new BBMOD_Vec2(1.0, 2.0).Scale(2.0) // => BBMOD_Vec2(2.0, 4.0)
Do you find this page helpful?

Copyright © 2024, BlueBurn. Built on September 07, 2024 using GMDoc.