33 #include <boost/math/constants/constants.hpp>
38 static constexpr
double TWO_PI = boost::math::constants::two_pi<double>();
41 static constexpr
double FOUR_THIRDS_PI = boost::math::constants::four_thirds_pi<double>();
44 static constexpr
double PI = boost::math::constants::pi<double>();
47 static constexpr
double THREE_QUARTERS_PI = boost::math::constants::three_quarters_pi<double>();
50 static constexpr
double TWO_THIRDS_PI = boost::math::constants::two_thirds_pi<double>();
53 static constexpr
double HALF_PI = boost::math::constants::half_pi<double>();
56 static constexpr
double THIRD_PI = boost::math::constants::third_pi<double>();
59 static constexpr
double SIXTH_PI = boost::math::constants::sixth_pi<double>();
62 static constexpr
double ONE_DIV_TWO_PI = boost::math::constants::one_div_two_pi<double>();
91 double angleDiff(
const double &_ang1,
const double &_ang2);
static constexpr double HALF_PI
Define PI/2.
static constexpr double SIXTH_PI
Define PI/6.
static constexpr double THIRD_PI
Define PI/3.
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,...
static constexpr double ONE_DIV_TWO_PI
Define 1/2PI.
static constexpr double THREE_QUARTERS_PI
Define 3PI/4.
double radToDeg(const double &_rad)
The radToDeg function converts radians to degrees.
static constexpr double TWO_PI
Define 2PI.
static constexpr double PI
Define PI.
double wrapAngleTo2Pi(const double &_rad)
The wrapAngleTo2Pi function wraps an input angle to the interval [0, 2pi).
static constexpr double FOUR_THIRDS_PI
Define 4PI/3.
static constexpr double TWO_THIRDS_PI
Define 2PI/3.