pub fn point_near_line( point: Pos2, line_start: Pos2, line_end: Pos2, tolerance: f32, ) -> bool
Helper function to check if a point is near a line segment