Struct navigation::Location
[−]
[src]
pub struct Location { pub lat: f64, pub lon: f64, }
Fields
lat: f64
lon: f64
Methods
impl Location
[src]
fn parse_nmea(lat: &str, lat_dir: &str, lon: &str, lon_dir: &str) -> Self
impl Location
[src]
fn new(_lat: f64, _lon: f64) -> Location
fn set(&mut self, lat: f64, lon: f64)
fn calc_bearing_to(&self, dest: &Location) -> f64
fn estimate_bearing_to(&self, dest: &Location, lat_size: f64, lon_size: f64) -> f64
experimental cheaper method of calculating bearing