点到直线的距离公式

直线方程为:

Ax+By+C=0

那么点到直线的距离 d 为:

d=|Ax+By+C|A2+B2=|Ax+Bf(x)+C|A2+B2