KEVOS® MAKEOS · Geometry

Straight Lines: Intersection, Angle and Distance

Where do these two lines cross, at what angle, and how far is a point from the first line?

Analytical geometry of straight lines each defined by two points: slopes and intercepts, the intersection point, the angle between the lines, and the perpendicular distance and foot of the perpendicular from a point to the first line.

Open the calculatorRuns in your browser. No account needed.

How this tool works

Inputs, units and where to find them

InputUnitTypical source
Line 1
x₁mmFirst point on line 1.
y₁mmFirst point on line 1.
x₂mmSecond point on line 1.
y₂mmSecond point on line 1.
Line 2
x₃mmFirst point on line 2.
y₃mmFirst point on line 2.
x₄mmSecond point on line 2.
y₄mmSecond point on line 2.
Point
Point xmmPoint whose distance from line 1 is wanted.
Point ymmPoint whose distance from line 1 is wanted.

Method and formulas

  1. Each line in the form A x + B y = C from its two points; the intersection solves both (none when parallel).
  2. Angle between lines from their direction vectors.
  3. Distance from a point = |A x₀ + B y₀ − C| ÷ √(A² + B²).
  4. Example: the lines cross at (53.333, 26.667) at 71.565°.

Limitations

  • Plane geometry; each line needs two distinct points.
  • Example values are illustrations. Replace them with values for your actual task.

Typical uses

  • Find a theoretical sharp corner from two drawn edges
  • Check a CNC contour intersection
  • Measure the distance of a hole from an inclined edge

Who it is for

  • CNC programmers
  • Toolmakers
  • Design engineers

What you get

  • Intersection point
  • Angle between the lines
  • Distance from the point to line 1

Interpreting the result

  • Use the foot of the perpendicular as the gauging point when inspecting an edge position.

References

  • Machinery’s Handbook, 29th edition (Industrial Press, 2012), printed pp. 40–46. Topic reference; no source tables or recommended settings are reproduced.

WORKOS tools are screening and decision-support utilities. Verify important financial, engineering, safety, legal or operational decisions using appropriate professional standards and your organisation’s approved data.

Open the Straight Lines: Intersection, Angle and Distance calculator