cg-math 0.1.2

A computer graphics library focused on usage with cg-lab.
Documentation
extern crate nalgebra as na;
use na::Vector2;

// for randomized incremental algorithm
// denote the three sentinel points as P_0, P_1, P_2
// and add suffix _I for using f64 INF, -INF values
// and add suffix _M for using f64 MIN, MAX values
// and add suffix _L for using sufficiently large values
// s. "Incremental Topological Flipping Works for Regular Triangulations, p. 231"
// for how the actual j-th coordinate of the i-th sentinel point is defined

#[allow(dead_code)]
pub const P_2_I: Vector2<f64> = Vector2::new(0., f64::INFINITY);
#[allow(dead_code)]
pub const P_1_I: Vector2<f64> = Vector2::new(f64::INFINITY, f64::NEG_INFINITY);
#[allow(dead_code)]
pub const P_0_I: Vector2<f64> = Vector2::new(f64::NEG_INFINITY, f64::NEG_INFINITY);

#[allow(dead_code)]
pub const P_2_M: Vector2<f64> = Vector2::new(0., f64::MAX);
#[allow(dead_code)]
pub const P_1_M: Vector2<f64> = Vector2::new(f64::MAX, f64::MIN);
#[allow(dead_code)]
pub const P_0_M: Vector2<f64> = Vector2::new(f64::MIN, f64::MIN);

#[allow(dead_code)]
pub const EPSILON_0: f64 = 0.0;
#[allow(dead_code)]
pub const LARGE_NUM: f64 = 10000.0; // NOTE: this parameter highly influences the convex hull property of the triangulation