public class Vector2D {
private var _x:Number;
private var _y:Number;
/**
* Constructor
*/
public function Vector2D(x:Number = 0, y:Number = 0) {
_x = x;
_y = y;
}
/**
* Creates an exact copy of this Vector2D
* @return Vector2D A copy of this Vector2D
*/
public function cloneVector():Vector2D {
return new Vector2D(x, y);
}