Hand Calculations logo Hand Calculations All help pages ▾

Point To Line Distance⚠ unverified

Geometry / Analytic · Distance from a point to ax+by+c=0

Labeled diagram for Point To Line Distance

Parameters

InputSymbolUnitDefaultDescription
aa—1.0Coefficient a (1/m)
bb—-1.0Coefficient b (1/m)
cc—0.0Coefficient c
x0x0m0Point x
y0y0m1Point y
OutputSymbolUnitDescription
ddmDistance

The science & history

Understanding the Parameters

How to Calculate

  1. Enter Coefficient a (1/m) as a (default 1.0 dimensionless). Use the unit menu when you need a different unit.
  2. Enter Coefficient b (1/m) as b (default -1.0 dimensionless). Use the unit menu when you need a different unit.
  3. Enter Coefficient c as c (default 0.0 dimensionless). Use the unit menu when you need a different unit.
  4. Enter Point x as x0 (default 0 m). Use the unit menu when you need a different unit.
  5. Enter Point y as y0 (default 1 m). Use the unit menu when you need a different unit.
  6. Click Calculate. The card evaluates $d=|ax_0+by_0+c|/\sqrt{a^2+b^2}$ and shows the result in the declared output unit; Result in (when present) converts that number.

The Science: A Rigorous Derivation (Approaching a Proof)

Analytic geometry replaces figures with equations. A point is a tuple of real numbers; the Euclidean distance is the $2$-norm of their difference. A line $ax+by+c=0$ is a level set of a linear function, so the distance from a point to the line is that function's value divided by the norm of its gradient. Conics are the quadratic curves; completing the square on $x^2+y^2+Dx+Ey+F=0$ yields a circle; $e = c/a$ classifies ellipse ($e<1$), parabola ($e=1$) and hyperbola ($e>1$). Polar coordinates $(r,\theta)$ are the Euclidean plane written in rotationally natural coordinates.

Dimensional check. The declared output unit is m; ToolBox evaluates the formula in SI (radians internally for every trigonometric call) and python-calc converts to the unit on the card.

History and Development

Related Concepts: Distance 3D, Slope, Angle Between Two Lines, Circle Radius From General Form, Parabola Latus Rectum, Ellipse Eccentricity, Ellipse Linear Eccentricity, Hyperbola Eccentricity

← Back to the workspace  ·  All help pages  ·  Getting started