[][src]Function voronator::delaunator::triangulate_from_tuple

pub fn triangulate_from_tuple(
    coords: &[(f64, f64)]
) -> Option<(Triangulation, Vec<Point>)>

Calculates the Delaunay triangulation, if it exists, for a given set of 2D points.

Points are passed as a tuple, (f64, f64), and converted internally to delaunator::Point. It returns both the triangulation and the vector of Points to be used, if desired.


  • coords - A vector of tuples, where each tuple is a (f64, f64)