point2line
index
 
Name clone ( )
Description Returns a clone of the vector. Use this when you want to avoid creating references between vectors; instead of doing v1 = v2, do v1 = v2.clone()
Syntax
clone();
Returns new clone 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 )"