(self, other)
return (self.p1 == other.p1) and (self.p2 == other.p2)
Is the other GeometryEntity equal to this Segment?
Is the other GeometryEntity equal to this Segment?
Is the other GeometryEntity equal to this Segment?
def __eq__(self, other):
        """Is the other GeometryEntity equal to this Segment?"""
        if not isinstance(other, Segment):
            return False
        return (self.p1 == other.p1) and (self.p2 == other.p2)
def __eq__ ( self , other ) : if not isinstance ( other , Segment ) : return False return ( self . p1 == other . p1 ) and ( self . p2 == other . p2 )