设线段两个端点的坐标为(x1,y1),(x2,y2)
则垂直平分线方程可由线上任一点到两个端点的距离相等来获得:
(x-x1)^2+(y-y1)^2=(x-x2)^2+(y-y2)^2
2(x1-x2)x+2(y1-y2)y=x1^2+y1^2-x2^2-y2^2
设线段两个端点的坐标为(x1,y1),(x2,y2)
则垂直平分线方程可由线上任一点到两个端点的距离相等来获得:
(x-x1)^2+(y-y1)^2=(x-x2)^2+(y-y2)^2
2(x1-x2)x+2(y1-y2)y=x1^2+y1^2-x2^2-y2^2