homework_04/18_stelian_todorichkov/circle.py
def find_relative_position(self, other):
        """
        Function find relative position of 2 circles
        """
        assert isinstance(other, Circle)
        distance = self.center.distane_between_points(other.center)
        if self == other:
            return RealativePosition.SAME
        if abs(self.radius - other.radius) < distance < (self.radius + other.radius):
            return RealativePosition.INTERSECTING
        if distance == (self.radius + other.radius) \
                or distance == abs(self.radius - other.radius):
            return RealativePosition.TOUCHING
        return RealativePosition.NO_COMMON_POINTS

        Function find relative position of 2 circles
        
Function find relative position of 2 circles
Function find relative position of 2 circles
def find_relative_position(self, other):
        assert isinstance(other, Circle)
        distance = self.center.distane_between_points(other.center)
        if self == other:
            return RealativePosition.SAME
        if abs(self.radius - other.radius) < distance < (self.radius + other.radius):
            return RealativePosition.INTERSECTING
        if distance == (self.radius + other.radius) \
                or distance == abs(self.radius - other.radius):
            return RealativePosition.TOUCHING
        return RealativePosition.NO_COMMON_POINTS
def find_relative_position ( self , other ) : assert isinstance ( other , Circle ) distance = self . center . distane_between_points ( other . center ) if self == other : return RealativePosition . SAME if abs ( self . radius - other . radius ) < distance < ( self . radius + other . radius ) : return RealativePosition . INTERSECTING if distance == ( self . radius + other . radius ) or distance == abs ( self . radius - other . radius ) : return RealativePosition . TOUCHING return RealativePosition . NO_COMMON_POINTS
Function find relative position of 2 circles
Function find relative position of 2 circles
"""
        Function find relative position of 2 circles
        """
self
other