homework_04/19_teodor_dishanski/task.py
def find_relative_position(self, other_circle) -> RelativePosition:
        """Return the relative position of the current cicle and another.

        Arguments: other_circle - An instance of the class Circle

        The decision of the relative position between 2 circles
        can be found in the folder Homework 3.
        """
        assert isinstance(other_circle, Circle)

        distance_centers = self.center.distance(other_circle.center)
        radii_sum = self.radius + other_circle.radius
        radii_diff = abs(self.radius - other_circle.radius)

        if self == other_circle:
            return RelativePosition.SAME

        condition1 = abs(distance_centers - radii_sum) < 0.001
        condition2 = abs(distance_centers - radii_diff) < 0.001

        if condition1 or condition2:
            return RelativePosition.TOUCHING

        if distance_centers > radii_sum or distance_centers < radii_diff:
            return RelativePosition.NO_COMMON_POINTS

        return RelativePosition.INTERSECTING
Return the relative position of the current cicle and another.

        Arguments: other_circle - An instance of the class Circle

        The decision of the relative position between 2 circles
        can be found in the folder Homework 3.
        
Return the relative position of the current cicle and another.
Arguments: other_circle - An instance of the class Circle

The decision of the relative position between 2 circles
can be found in the folder Homework 3.
Return the relative position of the current cicle and another . Arguments : other_circle - An instance of the class Circle The decision of the relative position between 2 circles can be found in the folder Homework 3 .
def find_relative_position(self, other_circle) -> RelativePosition:
        assert isinstance(other_circle, Circle)
        distance_centers = self.center.distance(other_circle.center)
        radii_sum = self.radius + other_circle.radius
        radii_diff = abs(self.radius - other_circle.radius)
        if self == other_circle:
            return RelativePosition.SAME
        condition1 = abs(distance_centers - radii_sum) < 0.001
        condition2 = abs(distance_centers - radii_diff) < 0.001
        if condition1 or condition2:
            return RelativePosition.TOUCHING
        if distance_centers > radii_sum or distance_centers < radii_diff:
            return RelativePosition.NO_COMMON_POINTS
        return RelativePosition.INTERSECTING
def find_relative_position ( self , other_circle ) -> RelativePosition : assert isinstance ( other_circle , Circle ) distance_centers = self . center . distance ( other_circle . center ) radii_sum = self . radius + other_circle . radius radii_diff = abs ( self . radius - other_circle . radius ) if self == other_circle : return RelativePosition . SAME condition1 = abs ( distance_centers - radii_sum ) < 0.001 condition2 = abs ( distance_centers - radii_diff ) < 0.001 if condition1 or condition2 : return RelativePosition . TOUCHING if distance_centers > radii_sum or distance_centers < radii_diff : return RelativePosition . NO_COMMON_POINTS return RelativePosition . INTERSECTING
Return the relative position of the current cicle and another.
Return the relative position of the current cicle and another .
"""Return the relative position of the current cicle and another.

        Arguments: other_circle - An instance of the class Circle

        The decision of the relative position between 2 circles
        can be found in the folder Homework 3.
        """
self
other_circle