Function nearest_vector_at

Source
pub fn nearest_vector_at<'a>(
    trajectory: &'a [(i64, &'a [f32])],
    target: i64,
) -> Option<&'a [f32]>
Expand description

Find the vector closest in time to target within a trajectory.

Returns None if the trajectory is empty.