Scale

function

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_Vec4 The created vector.

Example

new BBMOD_Vec4(1.0, 2.0, 3.0, 4.0).Scale(2.0) // => BBMOD_Vec4(2.0, 4.0, 6.0, 8.0)
Do you find this page helpful?

Copyright © 2022, BlueBurn. Built on May 18, 2022 using GMDoc.