fesoliveira014 / voronator-rs

Delaunay triangulation and Voronoi diagram generation. Ported from Mapbox's Delaunator and d3-voronoi
MIT License
54 stars 13 forks source link

Instead of returning Vec<usize>, return [usize; 3] when possible #2

Closed fesoliveira014 closed 4 years ago

fesoliveira014 commented 4 years ago

Instead of returning a Vec that always contains three elements, consider returning a [usize; 3]. That way we may save an allocation, i.e, edges_of_triangle.

fesoliveira014 commented 4 years ago

done in commit 75153c2