Public Member Functions |
double | alDiff (const Angle &other) const |
| Explicit casting to UCoordmm, in hundredths of degrees [0, 36000).
|
| Angle () |
| Default constructor.
|
| Angle (const double &t) |
| double constructor
|
| Angle (const Angle &rhs) |
| Copy constructor.
|
double | ccwDiff (const Angle &other) const |
| Counter-clock-wise difference (in [0,2*PI[).
|
Angle | ccwMean (const Angle &other) const |
| Counter-clock-wise mean, i.e, mean angle in ]this, other].
|
double | cwDiff (const Angle &other) const |
| Clock-wise difference (in ]-2*PI,0]).
|
Angle | cwMean (const Angle &other) const |
| Clock-wise mean, i.e, mean angle in ]other, this].
|
double | dCast () const |
| Returns theta.
|
double | dCast2Pi () const |
| Explicit casting to double [0, 2*M_PI].
|
double | dCastDeg () const |
| Explicit casting to double, in degrees [0, 360.0).
|
double | dCastPi (int opt=0) const |
| Explicit casting to double in (-M_PI, M_PI].
|
Angle | nearestMean (const Angle &other, double w1=0.5) const |
| Equal condition with a tollerance.
|
bool | operator!= (const Angle &other) const |
| Compound operator !=.
|
Angle | operator* (const Angle &other) const |
| Binary arithmetic operator *.
|
Angle | operator* (const double &d) const |
| Binary arithmetic operator * with scalar.
|
Angle & | operator*= (const Angle &a) |
| Compound assignment operator *=.
|
Angle & | operator*= (const double &d) |
| Compound assignment operator *= with scalar.
|
Angle | operator+ (const Angle &other) const |
| Binary arithmetic operator +.
|
Angle & | operator+= (const Angle &a) |
| Compound assignment operator +=.
|
Angle | operator- (const Angle &other) const |
| Binary arithmetic operator -.
|
Angle & | operator-= (const Angle &other) |
| Compound assignment operator -=.
|
Angle & | operator= (const Angle &rhs) |
| Assigment operator =.
|
bool | operator== (const Angle &other) const |
| Compound operator ==.
|
std::string | toString (int precision=2) const |
| Print function.
|
Static Public Member Functions |
static double | norm2Pi (double a) |
| Returns a value in [0, 2*M_PI).
|
static double | normMinus2Pi (double a) |
| Returns a value in ]-M_2PI, 0].
|
static double | normPi (double a, int opt=0) |
| Returns a value in (-M_PI, M_PI].
|
Private Attributes |
double | theta |
Static Private Attributes |
static const double | M_2PI = 2.0*M_PI |
Definition at line 19 of file Angle.hpp.
Explicit casting to UCoordmm, in hundredths of degrees [0, 36000).
Algebric difference (in ]-PI,PI]).
i.e, other - this in [0,2*PI[.
- Parameters:
-
[in] | other | The Angle respect to it is computed the algebric distance. |
- Returns:
- The algebric distance respect to an angle, it is in [-PI,PI].
Definition at line 18 of file Angle.cpp.