AB方程是(x-x1)/(x2-x1)=(y-y1)/(y2-y1),即(y2-y1)x-(x2-x1)y+(x2-x1)y1-(y2-y1)x1=0
L2 L3的直线方程是(y2-y1)x-(x2-x1)y+m=0,且D=|(x2-x1)y1-(y2-y1)x1-m|/√[(x2-x1)²+(y2-y1)²]
解出m的值有两个,分别是L2、L3的常数项.
若(x2-x1)>0,则m较大值对应L3,较小值对应L2;
若(x2-x1)
AB方程是(x-x1)/(x2-x1)=(y-y1)/(y2-y1),即(y2-y1)x-(x2-x1)y+(x2-x1)y1-(y2-y1)x1=0
L2 L3的直线方程是(y2-y1)x-(x2-x1)y+m=0,且D=|(x2-x1)y1-(y2-y1)x1-m|/√[(x2-x1)²+(y2-y1)²]
解出m的值有两个,分别是L2、L3的常数项.
若(x2-x1)>0,则m较大值对应L3,较小值对应L2;
若(x2-x1)