Skip to main content

interpolate

Function interpolate 

Source
pub fn interpolate(
    points: &[Point],
    degree: usize,
    spacing: Spacing,
    tol: Tolerances,
) -> OgeomResult<BSplineCurve>
Expand description

Fit a B-spline that passes through every point.

ยงErrors

OgeomError::Construction if there are fewer points than the degree requires, if two consecutive points coincide (which leaves a parameter interval of zero and a singular system), or if the system turns out singular anyway.