pub trait Spline { // Required method fn eval(&self, points: &[[f32; 2]], x: f32) -> f32; }
The curve’s maths, supplied by the application.
The curve’s output at x (0..1), through points (sorted by x, at least two).
x
points