geo 0.4.9

Geospatial primitives and algorithms
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
extern crate geo;

use geo::{Point, Coordinate};

fn main() {
    let c = Coordinate {
        x: 40.02f64,
        y: 116.34
    };

    let p = Point(c);

    let Point(coord) = p;
    println!("Point at ({}, {})", coord.x, coord.y);
}