jrlMathTools::Cangle Class Reference
This class implements simple computations on angles.
More...
List of all members.
Detailed Description
This class implements simple computations on angles.
Constructor & Destructor Documentation
jrlMathTools::Cangle::Cangle |
( |
|
) |
[inline] |
jrlMathTools::Cangle::Cangle |
( |
const double & |
inAngle |
) |
[inline] |
jrlMathTools::Cangle::Cangle |
( |
const Cangle & |
inAngle |
) |
[inline] |
Member Function Documentation
double jrlMathTools::Cangle::distance |
( |
const Cangle & |
inAngle |
) |
const [inline] |
Cangle jrlMathTools::Cangle::interpolate |
( |
const double & |
alpha, |
|
|
const Cangle & |
inAngle | |
|
) |
| | const [inline] |
Interpolation between two angles.
- Parameters:
-
| alpha | interpolation parameter between 0 and 1. |
| inAngle | second angle of interpolation. |
- Returns:
- an angle between this one and inAngle along the shortest arc.
- if alpha = 0, return this angle,
- if alpha = 1, return inAngle.
jrlMathTools::Cangle::operator const double & |
( |
|
) |
const [inline] |
Cangle jrlMathTools::Cangle::operator+ |
( |
Cangle |
inAngle |
) |
const [inline] |
Cangle jrlMathTools::Cangle::operator- |
( |
Cangle |
inAngle |
) |
const [inline] |
Difference between two angles.
const double& jrlMathTools::Cangle::operator= |
( |
const double & |
inDouble |
) |
[inline] |
Operator = with a double.
void jrlMathTools::Cangle::setBetweenMinusAndPlusPI |
( |
|
) |
[inline, protected] |
Set angle between -PI and PI.
Friends And Related Function Documentation
double cos |
( |
const Cangle & |
inAngle |
) |
[friend] |
Cangle operator* |
( |
const double & |
coef, |
|
|
const Cangle & |
inAngle | |
|
) |
| | [friend] |
Multiplication of an angle by a real number.
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const Cangle & |
inAngle | |
|
) |
| | [friend] |
double sin |
( |
const Cangle & |
inAngle |
) |
[friend] |
double tan |
( |
const Cangle & |
inAngle |
) |
[friend] |
Member Data Documentation