Expand description
An earth position: Latitude, Longitude and Height [radians, meters]
Fields
longitude_rad: f64
Longitude [radians]
latitude_rad: f64
Latitude [radians]
height_metres: f64
Height above ellipsoid [meters]
Implementations
sourceimpl LatLngHeight
impl LatLngHeight
sourcepub fn new_mwa() -> LatLngHeight
pub fn new_mwa() -> LatLngHeight
Provide a new LatLngHeight
at the MWA’s position.
sourcepub fn to_geocentric(
self,
ellipsoid: Ellipsoid
) -> Result<XyzGeocentric, ErfaError>
pub fn to_geocentric(
self,
ellipsoid: Ellipsoid
) -> Result<XyzGeocentric, ErfaError>
Convert to XyzGeocentric
via erfa_sys::eraGd2gc
with the specified
Ellipsoid
Errors
Can return an ErfaError
if erfa_sys::eraGd2gc
fails.
sourcepub fn to_geocentric_wgs84(self) -> Result<XyzGeocentric, ErfaError>
pub fn to_geocentric_wgs84(self) -> Result<XyzGeocentric, ErfaError>
Convert to geocentric via the default Ellipsoid::WGS84
.
Errors
Can return an ErfaError
if erfa_sys::eraGd2gc
fails.
Trait Implementations
sourceimpl Clone for LatLngHeight
impl Clone for LatLngHeight
sourcefn clone(&self) -> LatLngHeight
fn clone(&self) -> LatLngHeight
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for LatLngHeight
impl Debug for LatLngHeight
sourceimpl Default for LatLngHeight
impl Default for LatLngHeight
sourcefn default() -> LatLngHeight
fn default() -> LatLngHeight
Returns the “default value” for a type. Read more
sourceimpl Display for LatLngHeight
impl Display for LatLngHeight
impl Copy for LatLngHeight
Auto Trait Implementations
impl RefUnwindSafe for LatLngHeight
impl Send for LatLngHeight
impl Sync for LatLngHeight
impl Unpin for LatLngHeight
impl UnwindSafe for LatLngHeight
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
impl<T> Pointable for T
impl<T> Pointable for T
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