[−][src]Function makima_spline::vec_to_points
pub fn vec_to_points(x: &Vec<f64>, y: &Vec<f64>) -> Vec<(f64, f64)>
converts two vecs of x & y coordinates into points (f64, f64) used to build the spline
Example
let x = vec![1., 2., 3.]; let y = vec![3., 5., 2.]; let points = makima_spline::vec_to_points(&x, &y);