6 #define M_PI 3.14159265358979323846
23 bool isNaN()
const {
return std::isnan(_rads); }
44 _T rad()
const {
return _rads; }
56 Angle
operator"" _deg(
long double d);
57 Angle
operator"" _rad(
long double r);
58 Angle
operator"" _deg(
unsigned long long int d);
59 Angle
operator"" _rad(
unsigned long long int r);
#define M_PI
Definition: RBControl_angle.hpp:6
Definition: RBControl_angle.hpp:11
Angle & operator/=(_T c)
Definition: RBControl_angle.hpp:38
bool isNaN() const
Definition: RBControl_angle.hpp:23
_T deg() const
Definition: RBControl_angle.hpp:43
Angle operator-() const
Definition: RBControl_angle.hpp:33
Angle & operator-=(Angle a)
Definition: RBControl_angle.hpp:29
Angle()
Definition: RBControl_angle.hpp:16
Angle & operator*=(_T c)
Definition: RBControl_angle.hpp:34
static const Angle Pi
Definition: RBControl_angle.hpp:14
Angle & operator+=(Angle a)
Definition: RBControl_angle.hpp:25
static Angle nan()
Definition: RBControl_angle.hpp:21
_T rad() const
Definition: RBControl_angle.hpp:44
static Angle rad(_T r)
Definition: RBControl_angle.hpp:19
float _T
Definition: RBControl_angle.hpp:13
static Angle deg(_T d)
Definition: RBControl_angle.hpp:20
The base namespace. Contains some logging functions, too.
Definition: half_duplex_uart.cpp:53
Angle operator*(Angle a, Angle::_T c)
Definition: RBControl_angle.cpp:17
Angle operator-(Angle a, Angle b)
Definition: RBControl_angle.cpp:12
Angle operator/(Angle a, Angle::_T c)
Definition: RBControl_angle.cpp:22
Angle operator+(Angle a, Angle b)
Definition: RBControl_angle.cpp:7