trajectory

Trait Trajectory

Source
pub trait Trajectory {
    type Point;
    type Time;

    // Required methods
    fn position(&self, t: Self::Time) -> Option<Self::Point>;
    fn velocity(&self, t: Self::Time) -> Option<Self::Point>;
    fn acceleration(&self, t: Self::Time) -> Option<Self::Point>;
}

Required Associated Types§

Required Methods§

Source

fn position(&self, t: Self::Time) -> Option<Self::Point>

Source

fn velocity(&self, t: Self::Time) -> Option<Self::Point>

Source

fn acceleration(&self, t: Self::Time) -> Option<Self::Point>

Implementors§

Source§

impl<T> Trajectory for CubicSpline<T>
where T: Float,

Source§

type Point = Vec<T>

Source§

type Time = T

Source§

impl<T> Trajectory for Linear<T>
where T: Float,

Source§

type Point = Vec<T>

Source§

type Time = T