Skip to main content

overshoot

Function overshoot 

Source
fn overshoot(lo: f32, hi: f32, visible_lo: f32, visible_hi: f32) -> f32
Expand description

How far a span reaching from lo to hi must move along one axis to sit inside visible_lo..visible_hi. Zero when it already does; assumes it fits, so it never has to choose which end to leave outside.