Function flo_curves::bezier::walk_curve_evenly

source ·
pub fn walk_curve_evenly<Curve: BezierCurve>(
    curve: &Curve,
    distance: f64,
    max_error: f64,
) -> EvenWalkIterator<'_, Curve> 
Expand description

Walks a bezier curve by moving forward a set amount at each point. Each point may be up to max_error away from distance.

This walks evenly using the curve’s chord length rather than the arc length: each section returned will have a chord_length() of distance. The call vary_by() can be used on the result to vary the step size at each point.