Trait bevy::prelude::RationalGenerator

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

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

Required Methods§

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

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

Implementors§

§

impl<P> RationalGenerator<P> for CubicNurbs<P>
where P: VectorSpace,