pub fn point_segment_dist(p: [f64; 2], a: [f64; 2], b: [f64; 2]) -> f64
点 p から線分 a–b までの距離 [mm]。
p
a
b