Skip to main content

find_sector_near

Function find_sector_near 

Source
pub fn find_sector_near(
    sectors: &[Sector],
    walls: &[Wall],
    x: f64,
    y: f64,
    hint: i32,
) -> i32
Expand description

Sector lookup preferring neighbours of hint (breadth-first over a few levels).