pub fn point_to_line_distance(
px: f64,
py: f64,
x1: f64,
y1: f64,
x2: f64,
y2: f64,
) -> f64Expand description
Perpendicular distance from point (px, py) to the line through
(x1, y1) and (x2, y2).
Returns 0.0 when the two line endpoints coincide.