bevy_math::cubic_splines

Trait CubicGenerator

Source
pub trait CubicGenerator<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§

Source

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

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

Implementors§