Function tent_weight
fn tent_weight(x: f64, left: Option<f64>, peak: f64, right: Option<f64>) -> f64Expand description
The tent’s weight at x, its corners on the same axis: one at peak,
linear to zero at each present corner, flat on a side whose corner is absent.