Interpolation

Trait Interpolation 

Source
pub trait Interpolation<Position, Velocity> {
    type Motion: Motion<Position, Velocity>;

    // Required method
    fn interpolate(&self, up_to: &Self) -> Self::Motion;
}

Required Associated Types§

Source

type Motion: Motion<Position, Velocity>

Required Methods§

Source

fn interpolate(&self, up_to: &Self) -> Self::Motion

Interpolate the motion from this waypoint to another one.

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§