Struct open_protocol::types::Position
[−]
[src]
pub struct Position { pub latitude: f64, pub longitude: f64, pub altitude: f32, }
Fields
latitude: f64
longitude: f64
altitude: f32
Methods
impl Position
[src]
fn new(lat: f64, lon: f64, alt: f32) -> Position
fn distance(&self, other: Position) -> f64
fn height(&self, other: Position) -> f32
fn to_ecef(&self) -> (f64, f64, f64)
fn to_local_ned(&self, origin: Position) -> (f64, f64, f64)
fn to_yaw(&self, origin: Position) -> f32
Trait Implementations
impl Debug for Position
[src]
impl Copy for Position
[src]
impl Clone for Position
[src]
fn clone(&self) -> Position
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for Position
[src]
fn eq(&self, __arg_0: &Position) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Position) -> bool
This method tests for !=
.
impl Default for Position
[src]
impl Display for Position
[src]
impl From<PositionData> for Position
[src]
fn from(v: PositionData) -> Position
Performs the conversion.