VectorScale
Scales a vector by the given flex. If the vector has a length of one, the flex will become the length of the vector. Syntax:
scalevec=VectorScale(vector, flex);
The Math
scalevec=(flex*x, flex*y, flex*z)
Geometrical Application
In this example, the length of the given vector is 1. And the given flex to scale the vector by is 2. Since 1 * 2 = 2,
the length of the resultant vector will be 2.