JCash/voronoi

An all-in-one `#define` directive for the `double` precision.

issuefiler opened this issue · 1 comments

Suggestion

It’d be convenient if jc_voronoi.h could provide a single #define flag that sets all the following directives by default:

#define JC_VORONOI_IMPLEMENTATION
#define JCV_REAL_TYPE double
#define JCV_ATAN2 atan2
#define JCV_SQRT sqrt
#define JCV_FLT_MAX DBL_MAX
#define JCV_PI 3.141592653589793115997963468544185161590576171875

because I believe that, most of the time, those settings are not configured separately.

JCash commented

Hi @issuefiler

The point is to have configurability since some users do use their own functions of the game engine etc.

Also you can easily do this yourself in a wrapper header that you use.
As such, I don't think there's enough merit to bring this change the code.