Ipelib
|
A double that's an angle. More...
#include <ipegeo.h>
A double that's an angle.
An Angle is really nothing more than a double. Having a separate type is sometimes useful, for instance in the Vector constructor, and this class serves as the right place for a few utility functions. It also makes it clear whether a value is in radians or in degrees.
ipe::Angle::Angle | ( | ) | [inline, explicit] |
Construct uninitialized angle.
ipe::Angle::Angle | ( | double | alpha | ) | [inline] |
Construct an angle (in radians).
static Angle ipe::Angle::Degrees | ( | double | alpha | ) | [inline, static] |
Construct an angle in degrees.
ipe::Angle::operator double | ( | ) | const [inline] |
Return value (in radians).
double Angle::degrees | ( | ) | const |
Angle Angle::normalize | ( | double | lowlimit | ) |
Normalize the value to the range lowlimit .. lowlimit + 2 pi.
This Angle object is modified, a copy is returned.
When considering the positively oriented circle arc from angle small to large, does it cover this angle?