Skip to main content

fit_traced_2d

Function fit_traced_2d 

Source
pub fn fit_traced_2d(
    trace: impl FnMut(f64) -> OgeomResult<Point2>,
    stations: &[f64],
    degree: usize,
    tolerance: f64,
    tol: Tolerances,
) -> OgeomResult<Fitted<BSpline2d>>
Expand description

As fit_traced, 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 trace, and as ogeom_geom::fit::fit_curve_2d_sampled.