point2line
index
 
Name added ( )
Description Returns the result of an input vector added to the vector without changing the originals.
Syntax
added(x, y);
added(vector);
Parameters
x,y   to be added to the vector (float, float)
vector   to be added to the vector (Vect2)
Returns new vector containing the result of the addition (Vect2)
Usage Web & Application
Related add ( )
subtracted ( )
scaled ( )
divided ( )
Examples
import point2line.*;

Vect2 position = new Vect2( 0, 0 );
Vect2 velocity = new Vect2( 1, 1 );

Vect2 newPosition = position.added( velocity );

println( newPosition ); // prints "Vect2( 1.0, 1.0 )"