Class to compare if two angles are compatible within a given error range.
More...
#include <Angle.h>
|
| | BaseAngle (double angle, double error) |
| | Constructor.
|
| |
| virtual | ~BaseAngle () |
| | Destructor.
|
| |
| double | getAngle () const |
| | Getter for the angle.
|
| |
| double | getError () const |
| | Getter for the error of the angle.
|
| |
| double | getAngleInDeg () const |
| | Getter for angle in degrees.
|
| |
| double | getErrorInDeg () const |
| | Getter for the error of the angle in degrees.
|
| |
Class to compare if two angles are compatible within 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.
30: m_angle(angle), m_error(error) {};
◆ ~BaseAngle()
Destructor.
Definition at line 33 of file Angle.h.
◆ getAngle()
| double getAngle |
( |
| ) |
const |
|
inline |
Getter for the angle.
Definition at line 37 of file Angle.h.
◆ getAngleInDeg()
| double getAngleInDeg |
( |
| ) |
const |
|
inline |
Getter for angle in degrees.
Definition at line 45 of file Angle.h.
45{ return m_angle * TMath::RadToDeg(); }
◆ getError()
| double getError |
( |
| ) |
const |
|
inline |
Getter for the error of the angle.
Definition at line 41 of file Angle.h.
◆ getErrorInDeg()
| double getErrorInDeg |
( |
| ) |
const |
|
inline |
Getter for the error of the angle in degrees.
Definition at line 49 of file Angle.h.
49{ return m_error * TMath::RadToDeg(); }
◆ m_angle
Angle in rad.
Definition at line 53 of file Angle.h.
◆ m_error
Error in rad.
Definition at line 54 of file Angle.h.
The documentation for this class was generated from the following file:
- framework/utilities/include/Angle.h