pub struct ProfileField { /* private fields */ }Expand description
Piecewise-linear vertical profile: speed interpolates linearly in altitude, direction along the shortest circular arc. Below the first level and above the last, the nearest level holds.
Implementations§
Source§impl ProfileField
impl ProfileField
Sourcepub fn new(levels: Vec<ProfileLevel>) -> Result<Self>
pub fn new(levels: Vec<ProfileLevel>) -> Result<Self>
Build from levels, which must be finite, nonnegative in speed and strictly ascending in altitude.
Sourcepub fn levels(&self) -> &[ProfileLevel]
pub fn levels(&self) -> &[ProfileLevel]
The sorted levels.
Trait Implementations§
Source§impl Clone for ProfileField
impl Clone for ProfileField
Source§impl Debug for ProfileField
impl Debug for ProfileField
Auto Trait Implementations§
impl Freeze for ProfileField
impl RefUnwindSafe for ProfileField
impl Send for ProfileField
impl Sync for ProfileField
impl Unpin for ProfileField
impl UnsafeUnpin for ProfileField
impl UnwindSafe for ProfileField
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