18 extern bool globWarningFlag;
31 if (min < max && max <= max2)
38 post(
"Invalid bounds for angle");
40 if (nCoord >= min_ && nCoord <= max_)
42 else if (nCoord >= max_ && nCoord <= max2_ && max_ != max2_)
44 else if (globWarningFlag)
45 post(
"Invalid angle, default to %f", coord_);
52 if (nCoord >= min_ && nCoord <= max_)
54 else if (nCoord >= max_ && nCoord <= max2_ && max_ != max2_)
55 coord_ = nCoord - max2_;
56 else if (globWarningFlag)
57 post(
"Invalid angle %f, must be >= %f and <= %f", nCoord, min_, max_);
Angle()
Default class constructor.
static const double PI_X_180
Constant to convert degrees to radians.
TTFOUNDATION_EXPORT const TTFloat64 kTTTwoPi
Pre-calculated value of pi * 2.
double operator()() const
Get angle.
Jamoma's lowest-level base class and related infrastructure.
TTFOUNDATION_EXPORT const TTFloat64 kTTPi
[doxygenAppendixC_constExample]