pub trait Trajectory<V> {
// Required methods
fn get_segment(&self, t: f64) -> Option<Segment<'_, V>>;
fn position_at(&self, t: f64) -> Option<V>;
fn velocity_at(&self, t: f64) -> Option<V>;
fn acceleration_at(&self, t: f64) -> Option<V>;
}