Skip to main content

fit_curve_2d_sampled

Function fit_curve_2d_sampled 

Source
pub fn fit_curve_2d_sampled(
    point: impl FnMut(f64) -> OgeomResult<Point2>,
    ts: &[f64],
    closed: bool,
    degree: usize,
    tolerance: f64,
    tol: Tolerances,
) -> OgeomResult<Fitted<BSpline2d>>
Expand description

As fit_curve_sampled, in the plane: a chart image fitted at the parameters of the curve it annotates. The distances are in the trace’s own units.

§Errors

As fit_curve_sampled.