pub struct Coords {
pub longitude: Option<f64>,
pub latitude: Option<f64>,
pub altitude: Option<f64>,
pub u: Option<f64>,
pub v: Option<f64>,
pub roll: Option<f64>,
pub pitch: Option<f64>,
pub yaw: Option<f64>,
pub heading: Option<f64>,
}
Fields
longitude: Option<f64>
Unit: deg
latitude: Option<f64>
Unit: deg
altitude: Option<f64>
Unit: m
u: Option<f64>
Native x coordinate from a flat world.
v: Option<f64>
Native y coordinate from a flat world.
roll: Option<f64>
Positive when rolling the aircraft to the right.
pitch: Option<f64>
Positive when taking off.
yaw: Option<f64>
Clockwise relative to true north.
heading: Option<f64>
Yaw relative to true north of the flat world.
Implementations
sourceimpl Coords
impl Coords
pub fn update(
&mut self,
other: &Coords,
reference_latitude: f64,
reference_longitude: f64
)
pub fn position(self, lat: f64, lon: f64, alt: f64) -> Self
pub fn uv(self, u: f64, v: f64) -> Self
pub fn orientation(self, yaw: f64, pitch: f64, roll: f64) -> Self
pub fn heading(self, v: f64) -> Self
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Coords
impl Send for Coords
impl Sync for Coords
impl Unpin for Coords
impl UnwindSafe for Coords
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