[][src]Function lasy::interpolate_profiled_path

pub fn interpolate_profiled_path<'a, P, R>(
    points: &'a [P],
    edges: &[(EdgeProfile, PointIndex, PointIndex)],
    target_points: u32,
    conf: &'a InterpolationConfig,
    output_points: &mut Vec<R>
) where
    P: Clone + Into<R> + Position + Weight,
    R: Blanked + Clone + Lerp<Scalar = f32>, 

Interpolate the path described by the given edges.

The interpolation process will generate at least target_points number of points along the given path. More points may be generated in the case that distance-per-point, blank-delay and sharp-angle-delay specified via config require more points.

Generated points will be appended to the given output_points buffer.

If the given points or edges slices are empty, or if the edges slice contains no lit edges, no points will be generated.