Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 225 Bytes

distance-between-point-and-line.md

File metadata and controls

11 lines (8 loc) · 225 Bytes

Distance Between Point and Line

Given:

  • point P at $(x_p, y_p)$
  • function $f(x) = ax + b$

Distance d between P and line described with f(x) equals:

$$ d = \frac{\left| ax_p - y_p + b \right|}{\sqrt{1 + a^2}} $$