myVector.scale( scaleFactor ) in Anark Studio 2.5

Scale the vector by a factor.

Arguments

nametypedescription
scaleFactor Number The factor to multiply each co
Return Type
(none)

Description

Multiplies each x/y/z property of the vector by a given factor, modifying the original. Equivalent to: myVector.x*=scaleFactor; myVector.y*=scaleFactor; myVector.z*=scaleFactor;