point2line
index
 
Name scaled ( )
Description Multiplies the vector by an input value and returns the result without changing the original.
Syntax
scaled(multiplier);
scaled(multX, multY);
scaled(multVector);
Parameters
multiplier   to scale this vector (float)
multX,multY   to scale this vector (float,float)
multVector   to scale this vector (Vect2)
Returns new vector containing the result of the multiplication (Vect2)
Usage Web & Application
Related scale ( )
divided ( )
added ( )
subtracted ( )
Examples
import point2line.*;

Vect2 velocity = new Vect2( 10, 10 );

Vect2 newVelocity = velocity.scaled( 2 );

print( newVelocity ); // prints "Vect2( 20.0, 20.0 )"