Skip to main content

bracket

Function bracket 

fn bracket(axis: &[f64], x: f64) -> (usize, usize, f64)
Expand description

The two pillars of a non-empty ascending axis that bracket x, and the weight on the upper one — flat beyond both ends, and on an axis of one pillar (which has nothing to interpolate between).