Miscellaneous math utilities and fast exp functions. More...
#include <MathUtil.h>
Static Public Member Functions | |
static float | distance2D (const std::pair< float, float > &p0, const std::pair< float, float > &p1) |
static double | fast_atan2 (double y, double x) |
static float | mod2pi (float vin) |
Returns a result in [-Pi, Pi]. | |
static float | mod2pi (float ref, float v) |
Returns a value of v wrapped such that ref and v differ by no more than +/- Pi. | |
static float | square (float x) |
Returns the square of a value. |
Miscellaneous math utilities and fast exp functions.
Definition at line 17 of file MathUtil.h.
static float AprilTags::MathUtil::distance2D | ( | const std::pair< float, float > & | p0, |
const std::pair< float, float > & | p1 | ||
) | [inline, static] |
Definition at line 23 of file MathUtil.h.
static double AprilTags::MathUtil::fast_atan2 | ( | double | y, |
double | x | ||
) | [inline, static] |
Definition at line 44 of file MathUtil.h.
static float AprilTags::MathUtil::mod2pi | ( | float | vin | ) | [inline, static] |
Returns a result in [-Pi, Pi].
Definition at line 30 of file MathUtil.h.
static float AprilTags::MathUtil::mod2pi | ( | float | ref, |
float | v | ||
) | [inline, static] |
Returns a value of v wrapped such that ref and v differ by no more than +/- Pi.
Definition at line 41 of file MathUtil.h.
static float AprilTags::MathUtil::square | ( | float | x | ) | [inline, static] |
Returns the square of a value.
Definition at line 21 of file MathUtil.h.