Class to compare if two angles are compatible withing a given error range.
More...
#include <Angle.h>
|
typedef std::pair< double, double > | Interval |
| Shortcut for std::pair used as interval.
|
|
Class to compare if two angles are compatible withing a given error range.
Definition at line 24 of file Angle.h.
◆ BaseAngle()
Constructor.
- Parameters
-
angle | angle to compare |
error | error on the angle |
Definition at line 30 of file Angle.h.
double m_error
Error in rad.
double m_angle
Angle in rad.
◆ getLowerIntervalBoundary()
double getLowerIntervalBoundary |
( |
double |
sigma = 1 | ) |
const |
|
inline |
Getter for the lower interval bound: angle-sigma*error.
- Parameters
-
sigma | width of the error interval in standard deviations |
- Returns
- angle - sigma * error
Definition at line 55 of file Angle.h.
◆ getUpperIntervalBoundary()
double getUpperIntervalBoundary |
( |
double |
sigma = 1 | ) |
const |
|
inline |
Getter for the upper interval bound: angle+sigma*error.
- Parameters
-
sigma | width of the error interval in standard deviations |
- Returns
- angle + sigma * error
Definition at line 61 of file Angle.h.
◆ intervalsCompatible()
bool intervalsCompatible |
( |
const Interval & |
x_interval, |
|
|
const Interval & |
y_interval |
|
) |
| const |
|
inlineprotected |
Checks if the intervals overlap at some point.
If comparing phi angles, be sure to have the interval in a way this function can handle it, meaning always between [0, 2pi).
- Parameters
-
x_interval | first interval to check |
y_interval | second interval |
- Returns
- true if x and y overlap
Definition at line 76 of file Angle.h.
The documentation for this class was generated from the following file:
- framework/utilities/include/Angle.h