最佳答案
我有两条线在同一点相交。我知道这两条线的终点。如何在 Python 中计算交点?
# Given these endpoints
#line 1
A = [X, Y]
B = [X, Y]
#line 2
C = [X, Y]
D = [X, Y]
# Compute this:
point_of_intersection = [X, Y]