point2line
index
 
Name copy ( )
Description DEPRICIATED. Use clone() instead.
Returns a copy of the vector. Use this when you want to avoid creating references between vectors; instead of doing v1 = v2, do v1 = v2.clone()
Syntax
copy();
Returns new copy of this vector (Vect2)
Usage Web & Application
Related
Examples
import point2line.*;

Vect2 startVelocity = new Vect2( 5, 5 );

Vect2 velocity = startVelocity.copy();

println( velocity );  // prints "Vect2( 5.0, 5.0 )"