Overview
Point-line distance measures the perpendicular separation between a point and an infinite line, usually by projecting the point onto the line or using a determinant formula.
Computes the shortest distance from a point to a line.
Compact metadata for implementation and discovery.
Point-line distance measures the perpendicular separation between a point and an infinite line, usually by projecting the point onto the line or using a determinant formula.
Quick facts
Runtime and memory behavior at a glance.
Best
O(1)
Average
O(1)
Worst
O(1)
Space
O(1)
distance = |cross(b - a, p - a)| / ||b - a||Measures perpendicular distance from a point to a line.
Draw the input shapes, active tests, and generated geometric result.
For segments and rays, compute the projected parameter and clamp it to the allowed interval.
What each reference supports for this entry.
Computational geometry textbook reference for the predicates or constructions used by Point-Line Distance.
Good next jumps from the relationship graph, ranked for useful discovery.
Geometry · Core
RDP uses point-to-segment distance to decide which vertices to keep.
Compare with thisGeometry · Foundation
Both are basic geometric predicates over points and lines.
Compare with thisBoth are basic geometric predicates over points and lines.
RDP uses point-to-segment distance to decide which vertices to keep.