'Return True if self and other are contained in the same line.
Examples
>>> from sympy import Point, Line
>>> p1, p2, p3 = Point(0, 1), Point(3, 4), Point(2, 3)
>>> l1 = Line(p1, p2)
>>> l2 = Line(p1, p3)
>>> l1.is_similar(l2)
True'

def is_similar(self, other):

    l = Line(self.p1, self.p2)
    return l.contains(other)
