pub struct Height { /* private fields */ }Expand description
Height with its vertical datum.
Positive up; a depth is a negative height. Converting between datums needs a geoid or tide model, hence the datum is part of the value.
Implementations§
Source§impl Height
impl Height
Sourcepub const fn above_ellipsoid(value: Distance) -> Self
pub const fn above_ellipsoid(value: Distance) -> Self
Height above the ellipsoid.
Sourcepub const fn above_mean_sea_level(value: Distance) -> Self
pub const fn above_mean_sea_level(value: Distance) -> Self
Height above MSL.
Sourcepub const fn above_chart_datum(value: Distance) -> Self
pub const fn above_chart_datum(value: Distance) -> Self
Height above chart datum.
Sourcepub const fn new(value: Distance, datum: VerticalDatum) -> Self
pub const fn new(value: Distance, datum: VerticalDatum) -> Self
Height on any datum.
Sourcepub const fn datum(&self) -> VerticalDatum
pub const fn datum(&self) -> VerticalDatum
Vertical datum.
Trait Implementations§
impl Copy for Height
impl StructuralPartialEq for Height
Auto Trait Implementations§
impl Freeze for Height
impl RefUnwindSafe for Height
impl Send for Height
impl Sync for Height
impl Unpin for Height
impl UnsafeUnpin for Height
impl UnwindSafe for Height
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