public MoveCommand(Vector2D vec_) { vec = vec_; }
public double Distance(ref Vector2D value) { return(Math.Sqrt( Math.Pow(Math.Abs(value.x - x), 2) + Math.Pow((double)Math.Abs(value.y - y), 2))); }