Bezier

Trait Bezier 

Source
pub trait Bezier<V>: Copy + Sized {
    // Required methods
    fn lerp(self, a: V, b: V) -> V;
    fn bezier2(self, a: V, h: V, b: V) -> V;
    fn bezier3(self, a: V, h0: V, h1: V, b: V) -> V;
    fn bezier4(self, a: V, h0: V, h1: V, h2: V, b: V) -> V;
}

Required Methods§

Source

fn lerp(self, a: V, b: V) -> V

Source

fn bezier2(self, a: V, h: V, b: V) -> V

Source

fn bezier3(self, a: V, h0: V, h1: V, b: V) -> V

Source

fn bezier4(self, a: V, h0: V, h1: V, h2: V, b: V) -> V

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T: Copy + BezierT, V: LinearCombination<T>> Bezier<V> for T