gz/math/Angle.hh
bool operator>=(const Angle &_angle) const
Greater than or equal operator.
Angle operator/=(const Angle &_angle)
Division set operator, this = this / _angle.
Angle operator-(const Angle &_angle) const
Subtraction operator, result = this - _angle.
Angle operator+(const Angle &_angle) const
Addition operator, result = this + _angle.
Definition: gz/math/AdditivelySeparableScalarField3.hh:27
Angle operator*=(const Angle &_angle)
Multiplication set operator, this = this * _angle.
static const Angle TwoPi
An angle with a value of Pi * 2. Equivalent to math::Angle(IGN_PI * 2).
Definition: gz/math/Angle.hh:77
Angle operator/(const Angle &_angle) const
Division operator, result = this / _angle.
void SetDegree(double _degree)
Set the value from an angle in degrees.
Angle Normalized() const
Return the normalized angle in the range -Pi to Pi. This does not modify the value contained in this ...
void SetRadian(double _radian)
Set the value from an angle in radians.
friend std::ostream & operator<<(std::ostream &_out, const Angle &_a)
Stream insertion operator. Outputs in radians.
Definition: gz/math/Angle.hh:236
STL class.
friend std::istream & operator>>(std::istream &_in, Angle &_a)
Stream extraction operator. Assumes input is in radians.
Definition: gz/math/Angle.hh:247
T setf(T... args)
bool operator<=(const Angle &_angle) const
Less than or equal operator.
Angle operator-=(const Angle &_angle)
Subtraction set operator, this = this - _angle.
Angle operator+=(const Angle &_angle)
Addition set operator, this = this + _angle.
Angle()
Default constructor that initializes an Angle to zero radians/degrees.
void Normalize()
Normalize the angle in the range -Pi to Pi. This modifies the value contained in this Angle instance.
The Angle class is used to simplify and clarify the use of radians and degrees measurements....
Definition: gz/math/Angle.hh:61
bool operator==(const Angle &_angle) const
Equality operator, result = this == _angle.
static const Angle Pi
An angle with a value of Pi. Equivalent to math::Angle(IGN_PI).
Definition: gz/math/Angle.hh:69
static const Angle HalfPi
An angle with a value of Pi * 0.5. Equivalent to math::Angle(IGN_PI * 0.5).
Definition: gz/math/Angle.hh:73
static const Angle Zero
An angle with a value of zero. Equivalent to math::Angle(0).
Definition: gz/math/Angle.hh:65
STL class.
double operator*() const
Dereference operator.
Definition: gz/math/Angle.hh:157