Skip to main content

points_by_count

Function points_by_count 

Source
pub fn points_by_count(
    curve: &Curve,
    range: (f64, f64),
    count: usize,
    tol: Tolerances,
) -> OgeomResult<Vec<(f64, Point)>>
Expand description

count points evenly spaced by arc length along a curve, ends included.

count is the number of points, so two gives the ends and nothing between.

ยงErrors

OgeomError::Construction if fewer than two points are asked for; otherwise as parameter_at_length.