Skip to main content

sample_uniform

Function sample_uniform 

Source
pub fn sample_uniform<C: ParametricCurve>(
    curve: &C,
    t_start: f64,
    t_end: f64,
    n: usize,
) -> Vec<Point3> 
Expand description

Sample n evenly-spaced points in parameter space over [t_start, t_end].

  • n == 0 returns an empty Vec.
  • n == 1 returns a single point at t_start.
  • n >= 2 returns points including both endpoints.