1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#![deny(missing_docs,
        missing_debug_implementations,
        trivial_casts, trivial_numeric_casts,
        unsafe_code,
        unstable_features,
        unused_import_braces, unused_qualifications)]

//! A Rust implementation of Fortune's Linesweep algorithm for computing Voronoi diagrams.

#[macro_use]
extern crate log;
extern crate rand;
extern crate ordered_float;
extern crate fnv;

mod geometry;
mod point;
mod dcel;
mod beachline;
mod event;
mod voronoi;
mod lloyd;

pub use voronoi::voronoi;
pub use point::Point;
pub use dcel::{DCEL, make_line_segments, make_polygons};
pub use lloyd::{lloyd_relaxation, polygon_centroid};