Skip to main content

hit_waypoint

Function hit_waypoint 

Source
pub fn hit_waypoint(
    waypoints: &[Waypoint],
    pos: Pos2,
    tolerance: f32,
) -> Option<PathOrdinal>
Expand description

Which corner of a route sits within tolerance of pos — the grab a route edit starts from. Waypoints are positional, so the answer is the ordinal the edit session and the emitters both speak.