Trait parametrics::core::ParametricFunction2D
source · pub trait ParametricFunction2D {
// Required method
fn evaluate(&self, t: T) -> Point;
// Provided methods
fn linspace(&self, n: usize) -> Vec<Point> { ... }
fn start(&self) -> Point { ... }
fn end(&self) -> Point { ... }
fn random_point(&self) -> Point { ... }
fn random_points(&self, n: usize) -> Vec<Point> { ... }
}
Expand description
2D parametric function trait
Required Methods§
Provided Methods§
sourcefn random_point(&self) -> Point
fn random_point(&self) -> Point
return a random point on the parametric function
sourcefn random_points(&self, n: usize) -> Vec<Point>
fn random_points(&self, n: usize) -> Vec<Point>
return n random points on the parametric function