#include <S1.h>
Public Member Functions | |
| Ang2Pi () | |
| Default constructor. | |
| Ang2Pi (Decimal t) | |
| Decimal constructor. | |
| Ang2Pi (const Ang2Pi &rhs) | |
| Copy constructor. | |
| Ang2Pi & | operator= (const Ang2Pi &rhs) |
| Assigment operator =. | |
| Ang2Pi & | operator+= (const Ang2Pi &a) |
| Compound assignment operator +=. | |
| Ang2Pi & | operator-= (const Ang2Pi &other) |
| Compound assignment operator -=. | |
| Ang2Pi & | operator*= (const Ang2Pi &a) |
| Compound assignment operator *=. | |
| Ang2Pi & | operator*= (const Decimal &d) |
| Compound assignment operator *= with scalar. | |
| const Ang2Pi | operator+ (const Ang2Pi &other) const |
| Binary arithmetic operator +. | |
| const Ang2Pi | operator- (const Ang2Pi &other) const |
| Binary arithmetic operator -. | |
| const Ang2Pi | operator* (const Ang2Pi &other) const |
| Binary arithmetic operator *. | |
| const Ang2Pi | operator* (const Decimal &d) const |
| Binary arithmetic operator * with scalar. | |
| bool | operator== (const Ang2Pi &other) const |
| Compound operator ==. | |
| bool | operator!= (const Ang2Pi &other) const |
| Compound operator !=. | |
| Decimal | dCast () const |
| Explicit casting to Decimal. | |
| Decimal | dCastPi () |
| Explicit casting to Decimal in (-M_PI, M_PI]. | |
| Decimal | dCastDeg () |
| Explicit casting to Decimal, in degrees [0, 360.0). | |
| UCoordmm | dCastHDeg () |
| Explicit casting to UCoordmm, in hundredths of degrees [0, 36000). | |
| Decimal | alDiff (const Ang2Pi &other) |
| Algebric difference (in ]-PI,PI]). | |
| Decimal | ccwDiff (const Ang2Pi &other) |
| Counter-clock-wise difference (in [0,2*PI[). | |
| Decimal | cwDiff (const Ang2Pi &other) |
| Clock-wise difference (in ]-2*PI,0]). | |
| bool | almostEqual (Ang2Pi A, Decimal toll) |
| Equal condition with a tollerance. | |
| Ang2Pi | nearestMean (const Ang2Pi &other, Decimal w1=0.5) |
| The same as ccwMean but weighted. | |
| Ang2Pi | ccwMean (const Ang2Pi &other) |
| Counter-clock-wise mean, i.e, mean angle in ]this, other]. | |
| Ang2Pi | cwMean (const Ang2Pi &other) |
| Clock-wise mean, i.e, mean angle in ]other, this]. | |
| string | print (int precision=2) |
| Print function. | |
Friends | |
| class | boost::serialization::access |
| Ang2Pi::Ang2Pi | ( | ) | [inline] |
Default constructor.
| Ang2Pi::Ang2Pi | ( | Decimal | t | ) | [inline] |
Decimal constructor.
| Ang2Pi::Ang2Pi | ( | const Ang2Pi & | rhs | ) | [inline] |
Copy constructor.
Compound assignment operator *= with scalar.
Binary arithmetic operator +.
Binary arithmetic operator -.
Binary arithmetic operator *.
Binary arithmetic operator * with scalar.
| bool Ang2Pi::operator== | ( | const Ang2Pi & | other | ) | const [inline] |
Compound operator ==.
| bool Ang2Pi::operator!= | ( | const Ang2Pi & | other | ) | const [inline] |
Compound operator !=.
| Decimal Ang2Pi::dCast | ( | ) | const [inline] |
Explicit casting to Decimal.
| Decimal Ang2Pi::dCastPi | ( | ) | [inline] |
Explicit casting to Decimal in (-M_PI, M_PI].
| Decimal Ang2Pi::dCastDeg | ( | ) | [inline] |
Explicit casting to Decimal, in degrees [0, 360.0).
| UCoordmm Ang2Pi::dCastHDeg | ( | ) | [inline] |
Explicit casting to UCoordmm, in hundredths of degrees [0, 36000).
Algebric difference (in ]-PI,PI]).
i.e, other - this in [0,2*PI[.
| [in] | other | The Ang2Pi respect to it is computed the algebric distance. |
Counter-clock-wise difference (in [0,2*PI[).
i.e, other - this in in [0,2*PI[.
| [in] | other | The other angle. |
Clock-wise difference (in ]-2*PI,0]).
i.e, other - this in in ]-2*PI,0].
| other | The other angle. |
Counter-clock-wise mean, i.e, mean angle in ]this, other].
If this == other, it is by definition this + M_PI.
| [in] | other | The other angle. |
Clock-wise mean, i.e, mean angle in ]other, this].
if this == other, it is by definition this.
| [in] | other | The other angle. |
| string Ang2Pi::print | ( | int | precision = 2 |
) |
Print function.
| [in] | precision | The number of decimals (default is 2). |
friend class boost::serialization::access [friend] |
1.5.6