robust2d 0.1.0

Robust geometric predicates based on Jonathan Schewchuk's library https://www.cs.cmu.edu/~quake/robust.html
Documentation
use std::sync::{Once, ONCE_INIT};
use std::marker::PhantomData;
use ffi;

pub struct Library {
    phantom: PhantomData<()>,
}

static INIT: Once = ONCE_INIT;

impl Library {
    pub fn init() -> Self {
        INIT.call_once(|| {
            unsafe {
                ffi::exactinit();
            }
        });
        Library { phantom: PhantomData }
    }
}