pub trait CubicGenerator<P: VectorSpace> {
type Error;
// Required method
fn to_curve(&self) -> Result<CubicCurve<P>, Self::Error>;
}
Expand description
Implement this on cubic splines that can generate a cubic curve from their spline parameters.
Required Associated Types§
Required Methods§
Sourcefn to_curve(&self) -> Result<CubicCurve<P>, Self::Error>
fn to_curve(&self) -> Result<CubicCurve<P>, Self::Error>
Build a CubicCurve
by computing the interpolation coefficients for each curve segment.