intersection of two lines code example
Example: intersection lines
# import sympy and Point, Line
from sympy import Point, Line
p1, p2, p3 = Point(0, 0), Point(1, 1), Point(7, 7)
l2 = Line(Point(1, 4), Point(4, 1))
# using intersection() method
showIntersection = l1.intersection(l2)
print(showIntersection)