ivanfratric / polypartition

Tiny Polygon Partitioning and Triangulation Library
MIT License
664 stars 118 forks source link

enables optional custom floating point type and sqrt function #57

Closed grimaldini closed 1 week ago

grimaldini commented 1 week ago

This allows you to use floats instead of doubles by defining the following before including the implementation:

#define tppl_float float
#define tppl_sqrt std::sqrtf

sqrt and std::sqrtf differ at an assembly level, so this allows for extra-flexibility.

ivanfratric commented 1 week ago

Looks good, thanks!