已知直线1:A1x + B1y + C1 = 0、直线2:A2x + B2y + C2 = 0 求两条直线的交点(X, Y) X = (B1 * C2 - B2 * C1) / (A1 * B2 - A2 * B1); Y = (A1 * C2 - A2 * C1) / (A2 * B1 - A1 * B2); 特别的,若A1 * B2 == A2 * B1,则两直线平行