pub struct GeodeticPosition {
pub latitude: Angle,
pub longitude: Angle,
}Expand description
Geodetic position expressed in EPSG:4326 latitude and longitude.
Use this for absolute Earth-referenced positions such as GNSS fixes. Keep it distinct from local engineering coordinates like ENU/NED/cartesian meters.
Fields§
§latitude: Angle§longitude: AngleImplementations§
Source§impl GeodeticPosition
impl GeodeticPosition
pub fn new(latitude: Angle, longitude: Angle) -> GeodeticPosition
pub fn from_degrees(latitude_deg: f64, longitude_deg: f64) -> GeodeticPosition
pub fn latitude_degrees(&self) -> f64
pub fn longitude_degrees(&self) -> f64
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for GeodeticPosition
impl<'__de, __Context> BorrowDecode<'__de, __Context> for GeodeticPosition
Source§fn borrow_decode<__D>(
decoder: &mut __D,
) -> Result<GeodeticPosition, DecodeError>where
__D: BorrowDecoder<'__de, Context = __Context>,
fn borrow_decode<__D>(
decoder: &mut __D,
) -> Result<GeodeticPosition, DecodeError>where
__D: BorrowDecoder<'__de, Context = __Context>,
Attempt to decode this type with the given BorrowDecode.
Source§impl Clone for GeodeticPosition
impl Clone for GeodeticPosition
Source§fn clone(&self) -> GeodeticPosition
fn clone(&self) -> GeodeticPosition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for GeodeticPosition
Source§impl Debug for GeodeticPosition
impl Debug for GeodeticPosition
Source§impl<__Context> Decode<__Context> for GeodeticPosition
impl<__Context> Decode<__Context> for GeodeticPosition
Source§fn decode<__D>(decoder: &mut __D) -> Result<GeodeticPosition, DecodeError>where
__D: Decoder<Context = __Context>,
fn decode<__D>(decoder: &mut __D) -> Result<GeodeticPosition, DecodeError>where
__D: Decoder<Context = __Context>,
Attempt to decode this type with the given Decode.
Source§impl Default for GeodeticPosition
impl Default for GeodeticPosition
Source§fn default() -> GeodeticPosition
fn default() -> GeodeticPosition
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GeodeticPosition
impl<'de> Deserialize<'de> for GeodeticPosition
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<GeodeticPosition, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<GeodeticPosition, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Encode for GeodeticPosition
impl Encode for GeodeticPosition
Source§impl PartialEq for GeodeticPosition
impl PartialEq for GeodeticPosition
Source§impl Serialize for GeodeticPosition
impl Serialize for GeodeticPosition
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for GeodeticPosition
Auto Trait Implementations§
impl Freeze for GeodeticPosition
impl RefUnwindSafe for GeodeticPosition
impl Send for GeodeticPosition
impl Sync for GeodeticPosition
impl Unpin for GeodeticPosition
impl UnsafeUnpin for GeodeticPosition
impl UnwindSafe for GeodeticPosition
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CuMsgPayload for T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> ElementType for T
impl<T> ElementType for T
impl<T> GetTypeRegistration for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more