public double SquareDistanceTo(ObjectInWorld _object) { return SquareDistanceTo(_object.PosX, _object.PosX); }
public double DistanceTo(ObjectInWorld _object) { return Math.Sqrt((_object.PosX - PosX) * (_object.PosX - PosX) + (_object.PosY - PosY) * (_object.PosY - PosY)); //return Math.Sqrt( SquareDistanceTo(_object) ); }