parameters: (self, target)
return_statement: return None
docstring: Check if the specified entity (x, y, r) intersects any planets. Entity is assumed to not be a planet.
          :param entity.Entity target: The entity to check intersections with.
          :return: The colliding entity if so, else None.
          :rtype: entity.Entity
docstring_summary: Check if the specified entity (x, y, r) intersects any planets. Entity is assumed to not be a planet.
          :param entity.Entity target: The entity to check intersections with.
          :return: The colliding entity if so, else None.
          :rtype: entity.Entity
docstring_tokens: Check if the specified entity ( x y r ) intersects any planets . Entity is assumed to not be a planet . : param entity . Entity target : The entity to check intersections with . : return : The colliding entity if so else None . : rtype : entity . Entity
function: def _intersects_entity(self, target):
          """
          Check if the specified entity (x, y, r) intersects any planets. Entity is assumed to not be a planet.
          :param entity.Entity target: The entity to check intersections with.
          :return: The colliding entity if so, else None.
          :rtype: entity.Entity
          """
          for celestial_object in self._all_ships() + self.all_planets():
              if celestial_object is target:
                  continue
              d = celestial_object.calculate_distance_between(target)
              if d <= celestial_object.radius + target.radius + 0.1:
                  return celestial_object
          return None
function_tokens: def _intersects_entity ( self , target ) : for celestial_object in self . _all_ships ( ) + self . all_planets ( ) : if celestial_object is target : continue d = celestial_object . calculate_distance_between ( target ) if d <= celestial_object . radius + target . radius + 0.1 : return celestial_object return None