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

Turn delaunator::Point into a trait #5

Closed fesoliveira014 closed 3 years ago

fesoliveira014 commented 4 years ago

Currently the library uses the delaunator::Point struct to represent points in the algorithm. This is not ideal, as some people might want to use their own custom types, and would prefer to not have to convert the input to one of the three currently accepted types. One way to do this might be to implement Point as trait that requires implementation of two methods: x(&self) and y(&self), as other methods are already internally implemented.

fesoliveira014 commented 3 years ago

11 adds traits and closes this issue.