cubic_spline
Interpolation methods for computation of cubic spline points within the range of a discrete set of known points.
Example for flatten vec
use Spline;
static TENSION: f64 = 0.5;
static NUM_OF_SEGMENTS: u32 = 16;
let points = vec!;
let spline_points = from_flatten_points;
assert_eq!;
Example for tuples vec
use Spline;
static TENSION: f64 = 0.5;
static NUM_OF_SEGMENTS: u32 = 35;
let points = vec!;
let spline_points = from_tuples;
let = spline_points.last.unwrap;
assert_eq!;
Enjoy using!
License
This module is MIT licensed.