Trait batbox_lapp::Curve

source ·
pub trait Curve<F> {
    // Required method
    fn chain(&self, resolution: usize) -> Chain<F>
       where F: Float;
}
Expand description

A trait representing a generic curve.

Required Methods§

source

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

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

Implementors§

source§

impl<T> Curve<T> for Trajectory<T>