Skip to main content

equidistant

Function equidistant 

Source
pub fn equidistant<P: Path>(
    path: &P,
    step: P::Scalar,
) -> impl Iterator<Item = Result<P::Point, P::Error>> + '_
Expand description

Sample a path at equidistant arc-length intervals.

Yields points at s = 0, step, 2*step, … until s > length. The final sample may exceed length by less than step.