pub trait CubicGenerator<P>where
    P: Point,{
    // Required method
    fn to_curve(&self) -> CubicCurve<P>;
}
Expand description

Implement this on cubic splines that can generate a curve from their spline parameters.

Required Methods§

fn to_curve(&self) -> CubicCurve<P>

Build a CubicCurve by computing the interpolation coefficients for each curve segment.

Implementors§

§

impl<P> CubicGenerator<P> for BSpline<P>where P: Point,

§

impl<P> CubicGenerator<P> for Bezier<P>where P: Point,

§

impl<P> CubicGenerator<P> for CardinalSpline<P>where P: Point,

§

impl<P> CubicGenerator<P> for Hermite<P>where P: Point,