Skip to main content

Spline

Trait Spline 

Source
pub trait Spline {
    // Required method
    fn eval(&self, points: &[[f32; 2]], x: f32) -> f32;
}
Expand description

The curve’s maths, supplied by the application.

Required Methods§

Source

fn eval(&self, points: &[[f32; 2]], x: f32) -> f32

The curve’s output at x (0..1), through points (sorted by x, at least two).

Trait Implementations§

Source§

impl Debug for dyn Spline + '_

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Implementors§