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