[][src]Crate triangular

Calculates the Delauney Triangulation of a set of points

Examples

By default it expects points in the range of 0.0 - 1.0

use triangular::Triangulation;
 
// build a set of points
let points = vec![(0.3, 0.5),
                  (0.1, 0.6),
                  (0.4, 0.8)];
 
let triangles = Triangulation::new(&points).build();
assert_eq!(&*triangles, &[2, 1, 0]);

Structs

Triangulation