triangulate 0.2.0

Subdivides polygons into equivalent triangles
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/// A type which can be used to index a specific [Vertex](crate::Vertex).
/// Automatically implemented for all [Eq] + [Clone] types
#[cfg(not(feature = "_debugging"))]
pub trait VertexIndex: Eq + Clone { }
#[cfg(feature = "_debugging")]
pub trait VertexIndex: Eq + Clone + std::fmt::Debug { }

#[cfg(not(feature = "_debugging"))]
impl<T> VertexIndex for T 
where T: Eq + Clone
{ }

#[cfg(feature = "_debugging")]
impl<T> VertexIndex for T 
where T: Eq + Clone + std::fmt::Debug
{ }