22 return ((0 <= diff) && (diff < range))
24 : (value - range * floor(diff / range));
39 T delta = fmod(lhs - rhs, range);
42 if ((2 * delta) < -range) {
44 }
else if (range <= (2 * delta)) {
53 return wrap_periodic<T>(
x,
T(0),
T(2 * M_PI));
59 return wrap_periodic<T>(
x,
T(-M_PI),
T(2 * M_PI));
89 theta = 2 * M_PI -
theta;