MathUtils Class Reference

#include <RobotAPI/libraries/core/math/MathUtils.h>

Static Public Member Functions

static float AngleDelta (float angle1, float angle2)
 
static float AngleLerp (float a, float b, float f)
 
static float angleMod2PI (float value)
 
static float angleModPI (float value)
 
static float angleModX (float value, float center)
 
static bool CheckMinMax (const Eigen::Vector3f &min, const Eigen::Vector3f &max, const Eigen::Vector3f &value)
 
static bool CheckMinMax (double min, double max, double value)
 
static bool CheckMinMax (float min, float max, float value)
 
static bool CheckMinMax (int min, int max, int value)
 
static float fmod (float value, float boundLow, float boundHigh)
 
static float ILerp (float a, float b, float f)
 
static float ILerpClamp (float a, float b, float f)
 
static float Lerp (float a, float b, float f)
 
static float LerpClamp (float a, float b, float f)
 
static Eigen::Vector3f LimitMinMax (const Eigen::Vector3f &min, const Eigen::Vector3f &max, const Eigen::Vector3f &value)
 
static double LimitMinMax (double min, double max, double value)
 
static float LimitMinMax (float min, float max, float value)
 
static int LimitMinMax (int min, int max, int value)
 
static Eigen::Vector3f LimitTo (const Eigen::Vector3f &val, float maxNorm)
 
static double LimitTo (double value, double absThreshold)
 
static int Sign (double value)
 
static std::vector< float > VectorAbsDiff (const std::vector< float > &v1, const std::vector< float > &v2)
 
static float VectorMax (const std::vector< float > &vec)
 
static std::vector< float > VectorSubtract (const std::vector< float > &v1, const std::vector< float > &v2)
 

Member Function Documentation

◆ AngleDelta()

static float AngleDelta ( float angle1,
float angle2 )
inlinestatic

◆ AngleLerp()

static float AngleLerp ( float a,
float b,
float f )
inlinestatic

◆ angleMod2PI()

static float angleMod2PI ( float value)
inlinestatic

◆ angleModPI()

static float angleModPI ( float value)
inlinestatic

◆ angleModX()

static float angleModX ( float value,
float center )
inlinestatic

◆ CheckMinMax() [1/4]

static bool CheckMinMax ( const Eigen::Vector3f & min,
const Eigen::Vector3f & max,
const Eigen::Vector3f & value )
inlinestatic

◆ CheckMinMax() [2/4]

static bool CheckMinMax ( double min,
double max,
double value )
inlinestatic

◆ CheckMinMax() [3/4]

static bool CheckMinMax ( float min,
float max,
float value )
inlinestatic

◆ CheckMinMax() [4/4]

static bool CheckMinMax ( int min,
int max,
int value )
inlinestatic

◆ fmod()

static float fmod ( float value,
float boundLow,
float boundHigh )
inlinestatic

◆ ILerp()

static float ILerp ( float a,
float b,
float f )
inlinestatic

◆ ILerpClamp()

static float ILerpClamp ( float a,
float b,
float f )
inlinestatic

◆ Lerp()

static float Lerp ( float a,
float b,
float f )
inlinestatic

◆ LerpClamp()

static float LerpClamp ( float a,
float b,
float f )
inlinestatic

◆ LimitMinMax() [1/4]

static Eigen::Vector3f LimitMinMax ( const Eigen::Vector3f & min,
const Eigen::Vector3f & max,
const Eigen::Vector3f & value )
inlinestatic

◆ LimitMinMax() [2/4]

static double LimitMinMax ( double min,
double max,
double value )
inlinestatic

◆ LimitMinMax() [3/4]

static float LimitMinMax ( float min,
float max,
float value )
inlinestatic

◆ LimitMinMax() [4/4]

static int LimitMinMax ( int min,
int max,
int value )
inlinestatic

◆ LimitTo() [1/2]

static Eigen::Vector3f LimitTo ( const Eigen::Vector3f & val,
float maxNorm )
inlinestatic

◆ LimitTo() [2/2]

static double LimitTo ( double value,
double absThreshold )
inlinestatic

◆ Sign()

static int Sign ( double value)
inlinestatic

◆ VectorAbsDiff()

static std::vector< float > VectorAbsDiff ( const std::vector< float > & v1,
const std::vector< float > & v2 )
inlinestatic

◆ VectorMax()

static float VectorMax ( const std::vector< float > & vec)
inlinestatic

◆ VectorSubtract()

static std::vector< float > VectorSubtract ( const std::vector< float > & v1,
const std::vector< float > & v2 )
inlinestatic

The documentation for this class was generated from the following file: