myVector.scale( scaleFactor ) in Anark Studio 2.5
Scale the vector by a factor.
Arguments
name | type | description |
---|---|---|
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;