Struct slippy_map_tiles::LatLon
[−]
[src]
pub struct LatLon { /* fields omitted */ }
A single point in the world.
Since OSM uses up to 7 decimal places, this stores the lat/lon as f32
which is enough
precision of that
Methods
impl LatLon
[src]
fn new(lat: f32, lon: f32) -> Option<LatLon>
[src]
Constructs a LatLon from a given lat
and lon
. Returns None
if the lat or lon is
invalid, e.g. a lat of 100.
fn lat(&self) -> f32
[src]
Latitude
fn lon(&self) -> f32
[src]
Longitude
fn to_3857(&self) -> (f32, f32)
[src]
Trait Implementations
impl PartialEq for LatLon
[src]
fn eq(&self, __arg_0: &LatLon) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &LatLon) -> bool
[src]
This method tests for !=
.