pub fn discretized_motion<Sp, F>(
space: &Sp,
from: &Sp::State,
to: &Sp::State,
resolution: f64,
check_state: F,
) -> ValidityExpand description
Checks a motion by checking interpolated states at most resolution apart.
Checks the states after from up to and including to. Stops at the first
Validity::Invalid; otherwise returns Validity::Unknown if any state was unknown.
This is a sampled check, not a proof: obstacles thinner than resolution can be missed.
ยงPanics
Panics if resolution is not positive and finite.