pub enum Interpolation {
Linear,
Hermite,
CatmullRom,
}Expand description
How a position is read between samples.
Variants§
Linear
Straight line in ECEF (the chord). Exact for uniform motion; below a curved path it sags by
about d²/8R (≈ 2 cm over 1 km, ≈ 2 m over 10 km). The default.
Hermite
Cubic Hermite using each waypoint’s velocity as the tangent (a finite-difference tangent where a velocity is missing). C¹-continuous; the right choice for ephemeris state vectors.
CatmullRom
Cubic Catmull-Rom from positions alone, tangents estimated from the neighbouring samples in the sample-time parameterization. Smooth pass-through of the points without needing velocities.
Trait Implementations§
Source§impl Clone for Interpolation
impl Clone for Interpolation
impl Copy for Interpolation
Source§impl Debug for Interpolation
impl Debug for Interpolation
Source§impl Default for Interpolation
impl Default for Interpolation
impl Eq for Interpolation
Source§impl Hash for Interpolation
impl Hash for Interpolation
Source§impl PartialEq for Interpolation
impl PartialEq for Interpolation
impl StructuralPartialEq for Interpolation
Auto Trait Implementations§
impl Forget for Interpolation
impl Freeze for Interpolation
impl RefUnwindSafe for Interpolation
impl Send for Interpolation
impl Sync for Interpolation
impl Unpin for Interpolation
impl UnsafeUnpin for Interpolation
impl UnwindSafe for Interpolation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more