pub struct Position {
pub lat_deg: f64,
pub lon_deg: f64,
}Expand description
A position on the sphere, in degrees.
Latitude is positive north, longitude positive east, matching both the
Signal K vocabulary the core adopts (navigation.position) and GeoJSON.
Note the field order is lat-then-lon while GeoJSON coordinates are
lon-then-lat; the constructor names the arguments so the swap has to be
deliberate.
Fields§
§lat_deg: f64Degrees north of the equator, -90.0..=90.0.
lon_deg: f64Degrees east of Greenwich, normally -180.0..=180.0.
Implementations§
Trait Implementations§
impl Copy for Position
impl StructuralPartialEq for Position
Auto Trait Implementations§
impl Freeze for Position
impl RefUnwindSafe for Position
impl Send for Position
impl Sync for Position
impl Unpin for Position
impl UnsafeUnpin for Position
impl UnwindSafe for Position
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