point2line
index
 
Name add ( )
Description Adds an input vector to the vector and stores the result.
Syntax
add(x, y);
add(vector);
Parameters
x,y   to be added to the vector (float, float)
vector   to be added to the vector (Vect2)
Returns None
Usage Web & Application
Related added ( )
subtract ( )
scale ( )
divide ( )
Examples
import point2line.*;

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

position.add( velocity );

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