27#ifndef OD_GEGBLGEUTILS_H
28#define OD_GEGBLGEUTILS_H
34 if (
v < startAngleInV)
36 v = startAngleInV - fmod(startAngleInV -
v, period);
37 if (
v < startAngleInV)
42 v = endAngleInV + fmod(
v - endAngleInV, period);
46 if (
v < startAngleInV)
48 double d1 = startAngleInV -
v;
49 double d2 = fabs(endAngleInV -
v - period);
57 if (startAngle > endAngle)
59 std::swap(startAngle, endAngle);
61 if (
OdGreater(endAngle - startAngle, period))
63 startAngle = -period / 2;
64 endAngle = period / 2;
void makeInterValid(double &startAngle, double &endAngle, const double period=Oda2PI)
void moveIntoValidInter(const double &startAngleInV, const double &endAngleInV, double &v, const double period=Oda2PI)
bool OdGreater(double x, double y, double tol=1.e-10)