Helper class representing angles in tenth of degree. More...
#include <tenth_of_degree.h>
Public Member Functions | |
constexpr bool | operator!= (const TenthOfDegree &rhs) const |
constexpr TenthOfDegree & | operator* (const int &rhs) |
constexpr TenthOfDegree | operator* (const int &rhs) const |
constexpr TenthOfDegree & | operator* (const size_t &rhs) |
constexpr TenthOfDegree | operator* (const size_t &rhs) const |
constexpr TenthOfDegree & | operator* (const TenthOfDegree &rhs) |
constexpr TenthOfDegree & | operator+ (const TenthOfDegree &rhs) |
constexpr TenthOfDegree | operator+ (const TenthOfDegree &rhs) const |
constexpr TenthOfDegree & | operator+= (const TenthOfDegree &rhs) |
TenthOfDegree & | operator- (const TenthOfDegree &rhs) |
constexpr TenthOfDegree | operator- (const TenthOfDegree &rhs) const |
constexpr TenthOfDegree & | operator/ (const int &rhs) |
constexpr TenthOfDegree | operator/ (const int &rhs) const |
constexpr TenthOfDegree | operator/ (const TenthOfDegree &rhs) const |
constexpr bool | operator< (const TenthOfDegree &rhs) const |
constexpr bool | operator<= (const TenthOfDegree &rhs) const |
constexpr bool | operator== (const TenthOfDegree &rhs) const |
constexpr bool | operator> (const TenthOfDegree &rhs) const |
constexpr bool | operator>= (const TenthOfDegree &rhs) const |
constexpr | TenthOfDegree ()=default |
constexpr | TenthOfDegree (const int16_t &tenth_of_degree) |
constexpr double | toRad () const |
constexpr int16_t | value () const |
Static Public Member Functions | |
static TenthOfDegree | fromRad (const double &angle_in_rad) |
Private Attributes | |
int16_t | tenth_of_degree_ { 0 } |
Helper class representing angles in tenth of degree.
There are different representations for angles on the scanner side and the api.
This class simplifies/improves the handling of angles. It provides conversions from/to radian angles.
Definition at line 34 of file tenth_of_degree.h.
|
explicitconstexprdefault |
|
inlineexplicitconstexpr |
Definition at line 45 of file tenth_of_degree.h.
|
inlinestatic |
Definition at line 37 of file tenth_of_degree.h.
|
inlineconstexpr |
Definition at line 136 of file tenth_of_degree.h.
|
inlineconstexpr |
Definition at line 75 of file tenth_of_degree.h.
|
inlineconstexpr |
Definition at line 65 of file tenth_of_degree.h.
|
inlineconstexpr |
Definition at line 81 of file tenth_of_degree.h.
|
inlineconstexpr |
Definition at line 70 of file tenth_of_degree.h.
|
inlineconstexpr |
Definition at line 59 of file tenth_of_degree.h.
|
inlineconstexpr |
Definition at line 108 of file tenth_of_degree.h.
|
inlineconstexpr |
Definition at line 103 of file tenth_of_degree.h.
|
inlineconstexpr |
Definition at line 114 of file tenth_of_degree.h.
|
inline |
Definition at line 125 of file tenth_of_degree.h.
|
inlineconstexpr |
Definition at line 120 of file tenth_of_degree.h.
|
inlineconstexpr |
Definition at line 92 of file tenth_of_degree.h.
|
inlineconstexpr |
Definition at line 87 of file tenth_of_degree.h.
|
inlineconstexpr |
Definition at line 98 of file tenth_of_degree.h.
|
inlineconstexpr |
Definition at line 156 of file tenth_of_degree.h.
|
inlineconstexpr |
Definition at line 146 of file tenth_of_degree.h.
|
inlineconstexpr |
Definition at line 131 of file tenth_of_degree.h.
|
inlineconstexpr |
Definition at line 151 of file tenth_of_degree.h.
|
inlineconstexpr |
Definition at line 141 of file tenth_of_degree.h.
|
inlineconstexpr |
Definition at line 54 of file tenth_of_degree.h.
|
inlineconstexpr |
Definition at line 49 of file tenth_of_degree.h.
|
private |
Definition at line 162 of file tenth_of_degree.h.