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< floatVectorAbsDiff (const std::vector< float > &v1, const std::vector< float > &v2)
 
static float VectorMax (const std::vector< float > &vec)
 
static std::vector< floatVectorSubtract (const std::vector< float > &v1, const std::vector< float > &v2)
 

Detailed Description

Definition at line 33 of file MathUtils.h.

Member Function Documentation

◆ AngleDelta()

static float AngleDelta ( float  angle1,
float  angle2 
)
inlinestatic

Definition at line 216 of file MathUtils.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ AngleLerp()

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

Definition at line 209 of file MathUtils.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ angleMod2PI()

static float angleMod2PI ( float  value)
inlinestatic

Definition at line 167 of file MathUtils.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ angleModPI()

static float angleModPI ( float  value)
inlinestatic

Definition at line 173 of file MathUtils.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ angleModX()

static float angleModX ( float  value,
float  center 
)
inlinestatic

Definition at line 179 of file MathUtils.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CheckMinMax() [1/4]

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

Definition at line 108 of file MathUtils.h.

+ Here is the call graph for this function:

◆ CheckMinMax() [2/4]

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

Definition at line 102 of file MathUtils.h.

+ Here is the call graph for this function:

◆ CheckMinMax() [3/4]

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

Definition at line 96 of file MathUtils.h.

+ Here is the call graph for this function:

◆ CheckMinMax() [4/4]

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

Definition at line 90 of file MathUtils.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fmod()

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

Definition at line 156 of file MathUtils.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ILerp()

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

Definition at line 197 of file MathUtils.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ILerpClamp()

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

Definition at line 203 of file MathUtils.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Lerp()

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

Definition at line 185 of file MathUtils.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LerpClamp()

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

Definition at line 191 of file MathUtils.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LimitMinMax() [1/4]

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

Definition at line 61 of file MathUtils.h.

+ Here is the call graph for this function:

◆ LimitMinMax() [2/4]

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

Definition at line 55 of file MathUtils.h.

+ Here is the call graph for this function:

◆ LimitMinMax() [3/4]

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

Definition at line 49 of file MathUtils.h.

+ Here is the call graph for this function:

◆ LimitMinMax() [4/4]

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

Definition at line 43 of file MathUtils.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LimitTo() [1/2]

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

Definition at line 79 of file MathUtils.h.

+ Here is the call graph for this function:

◆ LimitTo() [2/2]

static double LimitTo ( double  value,
double  absThreshold 
)
inlinestatic

Definition at line 71 of file MathUtils.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Sign()

static int Sign ( double  value)
inlinestatic

Definition at line 37 of file MathUtils.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ VectorAbsDiff()

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

Definition at line 130 of file MathUtils.h.

◆ VectorMax()

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

Definition at line 143 of file MathUtils.h.

+ Here is the call graph for this function:

◆ VectorSubtract()

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

Definition at line 117 of file MathUtils.h.


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