Function lyon_geom::cubic_to_quadratic::inflection_based_approximation [] [src]

pub fn inflection_based_approximation<S: Scalar, F>(
    curve: &CubicBezierSegment<S>,
    cb: &mut F
) where
    F: FnMut(QuadraticBezierSegment<S>), 

Approximate the curve by first splitting it at the inflection points and then using single or mid point approximations depending on the size of the parts.