Skip to main content

ray_cast_ranges

Function ray_cast_ranges 

Source
pub fn ray_cast_ranges(
    pose: Pose2D,
    segments: &[LineSegment],
    beam_count: usize,
    max_range: f64,
) -> Vec<f64>
Expand description

Ranges of beam_count beams spread uniformly over [-π, π) from pose.

Beams that hit nothing within max_range return f64::INFINITY.