18 #ifndef _GAZEBO_ANGLE_HH_    19 #define _GAZEBO_ANGLE_HH_    22 #include <ignition/math/Angle.hh>    29 #define GZ_RTOD(r) ((r) * 180 / M_PI)    34 #define GZ_DTOR(d) ((d) * M_PI / 180)    39 #define GZ_NORMALIZE(a) (atan2(sin(a), cos(a)))    72     public: 
Angle(
double _radian);
    80     public: 
Angle(
const ignition::math::Angle &_angle);
    83     public: 
virtual ~
Angle();
    87     public: 
void SetFromRadian(
double _radian);
    91     public: 
void SetFromDegree(
double _degree);
    95     public: 
double Radian() 
const;
    99     public: 
double Degree() 
const;
   102     public: 
void Normalize();
   106     public: 
inline double operator*()
 const { 
return value; }
   110     public: 
Angle operator-(
const Angle &_angle) 
const;
   115     public: 
Angle operator+(
const Angle &_angle) 
const;
   120     public: 
Angle operator*(
const Angle &_angle) 
const;
   125     public: 
Angle operator/(
const Angle &_angle) 
const;
   130     public: 
Angle operator-=(
const Angle &_angle);
   135     public: 
Angle operator+=(
const Angle &_angle);
   140     public: 
Angle operator*=(
const Angle &_angle);
   145     public: 
Angle operator/=(
const Angle &_angle);
   149     public: ignition::math::Angle Ign() 
const;
   154     public: 
Angle &operator=(
const double &_angle);
   159     public: 
Angle &operator=(
const ignition::math::Angle &_angle);
   164     public: 
bool operator ==(
const Angle &_angle) 
const;
   169     public: 
bool operator!=(
const Angle &_angle) 
const;
   174     public: 
bool operator<(
const Angle &_angle) 
const;
   179     public: 
bool operator<=(
const Angle &_angle) 
const;
   184     public: 
bool operator>(
const Angle &_angle) 
const;
   189     public: 
bool operator>=(
const Angle &_angle) 
const;
   210       _in.setf(std::ios_base::skipws);
   216     private: 
double value;
 friend std::ostream & operator<<(std::ostream &_out, const gazebo::math::Angle &_a)
Stream insertion operator. 
Definition: Angle.hh:195
 
static const Angle HalfPi
math::Angle(M_PI * 0.5) 
Definition: Angle.hh:62
 
Forward declarations for the common classes. 
Definition: Animation.hh:33
 
friend std::istream & operator>>(std::istream &_in, gazebo::math::Angle &_a)
Stream extraction operator. 
Definition: Angle.hh:206
 
static const Angle TwoPi
math::Angle(M_PI * 2) 
Definition: Angle.hh:65
 
static const Angle Pi
math::Angle(M_PI) 
Definition: Angle.hh:59
 
double Radian() const
Get the angle in radians. 
 
double operator*() const
Dereference operator. 
Definition: Angle.hh:106
 
An angle and related functions. 
Definition: Angle.hh:53
 
static const Angle Zero
math::Angle(0) 
Definition: Angle.hh:56