Struct dms_coordinates::DMS3d
source · [−]pub struct DMS3d { /* private fields */ }Expand description
3D D°M'S'' coordinates
(latitude, longitude, optionnal altitude)
Implementations
sourceimpl DMS3d
impl DMS3d
sourcepub fn new(latitude: DMS, longitude: DMS, altitude: Option<f64>) -> DMS3d
pub fn new(latitude: DMS, longitude: DMS, altitude: Option<f64>) -> DMS3d
Builds new 3D D°M'S'' coordinates
sourcepub fn from_decimal_degrees(lat: f64, lon: f64, altitude: Option<f64>) -> DMS3d
pub fn from_decimal_degrees(lat: f64, lon: f64, altitude: Option<f64>) -> DMS3d
Builds a 3D D°M'S'' from given coordinates in decimal degrees
sourcepub fn get_altitude(&self) -> Option<f64>
pub fn get_altitude(&self) -> Option<f64>
Returns altitude of self
sourcepub fn set_altitude(&mut self, alt: f64)
pub fn set_altitude(&mut self, alt: f64)
Assigns altitude
sourcepub fn get_latitude(&self) -> DMS
pub fn get_latitude(&self) -> DMS
Returns latitude
sourcepub fn set_latitude(&mut self, lat: DMS)
pub fn set_latitude(&mut self, lat: DMS)
Assigns latitude
sourcepub fn get_longitude(&self) -> DMS
pub fn get_longitude(&self) -> DMS
Returns longitude
sourcepub fn set_longitude(&mut self, lon: DMS)
pub fn set_longitude(&mut self, lon: DMS)
Assigns longitude
Trait Implementations
impl Copy for DMS3d
impl StructuralPartialEq for DMS3d
Auto Trait Implementations
impl RefUnwindSafe for DMS3d
impl Send for DMS3d
impl Sync for DMS3d
impl Unpin for DMS3d
impl UnwindSafe for DMS3d
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more