L1:(X1,Y1),(X2,Y2)
L2:(X3,Y3),(X4,Y4)
L1:Y=K1X+B1,L2:Y=K2X+B2
交点:[(B2-B1)/(K1-K2),(B2K1-B1K2)/(K1-K2)]
其中:k1=(y2-y1)/(x2-y1),k2=(y4-y3)/(x4-x3)
b1=y1-k1(B2-B1)/(K1-K2),b2=y3-k2(B2-B1)/(K1-K2),
L1:(X1,Y1),(X2,Y2)
L2:(X3,Y3),(X4,Y4)
L1:Y=K1X+B1,L2:Y=K2X+B2
交点:[(B2-B1)/(K1-K2),(B2K1-B1K2)/(K1-K2)]
其中:k1=(y2-y1)/(x2-y1),k2=(y4-y3)/(x4-x3)
b1=y1-k1(B2-B1)/(K1-K2),b2=y3-k2(B2-B1)/(K1-K2),