pub trait CubicHermiteCurve<T> {
    // Required method
    fn intervals(&self) -> Vec<CurveInterval<T>>;

    // Provided method
    fn chain(&self, resolution: usize) -> Chain<T>
       where T: Float { ... }
}
Expand description

A trait representing a curve defined by intervals with key points and tangents.

Required Methods§

source

fn intervals(&self) -> Vec<CurveInterval<T>>

Get the intervals of the curve.

Provided Methods§

source

fn chain(&self, resolution: usize) -> Chain<T>
where T: Float,

Converts a curve into a chain (a list of segments) for rendering and collision detection.

Implementors§