35 return (_deg/180.0) *
PI;
41 return (_rad/
PI) * 180;
47 double ret = std::fmod(_rad +
PI, 2 *
PI);
61 double ret = std::fmod(_rad, 2 *
PI);
72 double angleDiff(
const double &_ang1,
const double &_ang2)
74 double diff = std::fmod(_ang2 - _ang1 +
PI, 2 *
PI);
double wrapAngleToPi(const double &_rad)
The wrapAngleToPi function wraps an input angle to the interval [-pi, pi).
double degToRad(const double &_deg)
The degToRad function converts degrees to radians.
double angleDiff(const double &_ang1, const double &_ang2)
The angleDiff function returns the difference in angle between two given angles in the interval [0,...
double radToDeg(const double &_rad)
The radToDeg function converts radians to degrees.
static constexpr double PI
Define PI.
double wrapAngleTo2Pi(const double &_rad)
The wrapAngleTo2Pi function wraps an input angle to the interval [0, 2pi).