pub fn point_on_segment(pt: [f64; 2], seg_a: [f64; 2], seg_b: [f64; 2]) -> bool
Whether a point lies exactly on a line segment (within epsilon tolerance).