122 int perQuad = rint(tol);
124 if ( perQuad != tol )
126 lwerror(
"lwarc_linearize: segments per quadrant must be an integer value, got %.15g", tol, perQuad);
131 lwerror(
"lwarc_linearize: segments per quadrant must be at least 1, got %d", perQuad);
134 increment = fabs(M_PI_2 / perQuad);
135 LWDEBUGF(2,
"lwarc_linearize: perQuad:%d, increment:%g (%g degrees)", perQuad, increment, increment*180/M_PI);
#define LWDEBUGF(level, msg,...)
void lwerror(const char *fmt,...)
Write a notice out to the error handler.