Skip to main content

make_interp_curve

Function make_interp_curve 

Source
pub fn make_interp_curve(
    points: &Array2<f64>,
    k: usize,
    bc: &BoundaryCondition,
) -> Result<(Vec<f64>, Vec<BSpline>), ErrorsJSL>
Expand description

An interpolating parametric curve through the rows of points (an n × d array): the parameter is the cumulative chord length normalised to [0, 1] (as splprep chooses it), and each coordinate is interpolated with make_interp_spline. Returns the parameter values and one spline per coordinate.