API Vector2DMixin ScaleBy

Scales a 2D or 3D vector's length by multiplying or dividing each coordinate. vector:ScaleBy(scalar) vector:DivideBy(scalar) vector:Normalize

Arguments

 * scalar : - Multiplied or divided into each coordinate.

Details

 * Normalize is equivalent to, resulting in a unit vector (length = 1).