Tetrapod Project
angle_utils.h File Reference
#include <cmath>
#include <boost/math/constants/constants.hpp>
Include dependency graph for angle_utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 math_utils
 

Functions

double math_utils::degToRad (const double &_deg)
 The degToRad function converts degrees to radians. More...
 
double math_utils::radToDeg (const double &_rad)
 The radToDeg function converts radians to degrees. More...
 
double math_utils::wrapAngleToPi (const double &_rad)
 The wrapAngleToPi function wraps an input angle to the interval [-pi, pi). More...
 
double math_utils::wrapAngleTo2Pi (const double &_rad)
 The wrapAngleTo2Pi function wraps an input angle to the interval [0, 2pi). More...
 
double math_utils::angleDiff (const double &_ang1, const double &_ang2)
 The angleDiff function returns the difference in angle between two given angles in the interval [0, pi) More...
 

Variables

static constexpr double math_utils::TWO_PI = boost::math::constants::two_pi<double>()
 Define 2PI. More...
 
static constexpr double math_utils::FOUR_THIRDS_PI = boost::math::constants::four_thirds_pi<double>()
 Define 4PI/3. More...
 
static constexpr double math_utils::PI = boost::math::constants::pi<double>()
 Define PI. More...
 
static constexpr double math_utils::THREE_QUARTERS_PI = boost::math::constants::three_quarters_pi<double>()
 Define 3PI/4. More...
 
static constexpr double math_utils::TWO_THIRDS_PI = boost::math::constants::two_thirds_pi<double>()
 Define 2PI/3. More...
 
static constexpr double math_utils::HALF_PI = boost::math::constants::half_pi<double>()
 Define PI/2. More...
 
static constexpr double math_utils::THIRD_PI = boost::math::constants::third_pi<double>()
 Define PI/3. More...
 
static constexpr double math_utils::SIXTH_PI = boost::math::constants::sixth_pi<double>()
 Define PI/6. More...
 
static constexpr double math_utils::ONE_DIV_TWO_PI = boost::math::constants::one_div_two_pi<double>()
 Define 1/2PI. More...