Struct geomorph::coord::Coord [−][src]
Holds a pair for latitude and longitude coordinates
Examples
use std::error::Error; extern crate geomorph; fn try_main() -> Result<geomorph::coord::Coord, geomorph::ParseError> { let lat: f64 = -23.0095839; let lon: f64 = -43.4361816; geomorph::coord::Coord::new(lat, lon) } fn main() { let coord = try_main().unwrap(); }
Fields
lat: f64
Latitude: Must be contained in the interval [-90.0..90.0]
lon: f64
Longitude: Must be contained in the interval [-180.0..180.0]
Methods
impl Coord
[src]
impl Coord