def equals(self, other):
        if not isinstance(other, Ray):
            return False
        return self.source == other.source and other.p2 in self
Returns True if self and other are the same mathematical entities
dataset/ETHPy150Open sympy/sympy/sympy/geometry/line.py/Ray.equals