fn point_in_line( point: Position2, origin: Position2, heading: f64, range: f64, half_width: f64, ) -> bool