pub trait Interpolator {
// Required method
fn interpolate(&self, x: f64) -> f64;
// Provided method
fn sample(&self, start: f64, end: f64, num_points: usize) -> Vec<Point2D> { ... }
}Expand description
Interpolation trait for different curve types.
Required Methods§
Sourcefn interpolate(&self, x: f64) -> f64
fn interpolate(&self, x: f64) -> f64
Interpolate y value at given x.