Categories
技术讨论

备忘:点到直线的距离公式

点到直线的距离公式,这些基本的公式也都还给老师了。

点P(x0,y0)到直线直线Ax+By+C=0的距离:

d=|Ax0+By0+C|/sqrt(A^2+B^2)

距离公式

扩展公式:

平行直线L1:Ax+By+C1=0与L2:Ax+By+C2=0的距离:

d=|C1-C2|/sqrt(A^2+B^2)

index_clip_image008

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.