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

Trait Implementations

impl Debug for Location
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl ToString for Location
[src]

fn to_string(&self) -> String

Converts the given value to a String. Read more