Trait bevy::prelude::CubicGenerator

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

Implement this on cubic splines that can generate a cubic 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 LinearSpline<P>
where P: VectorSpace,

§

impl<P> CubicGenerator<P> for CubicBSpline<P>
where P: VectorSpace,

§

impl<P> CubicGenerator<P> for CubicBezier<P>
where P: VectorSpace,

§

impl<P> CubicGenerator<P> for CubicCardinalSpline<P>
where P: VectorSpace,

§

impl<P> CubicGenerator<P> for CubicHermite<P>
where P: VectorSpace,