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 31 of file MathUtils.h.

Member Function Documentation

◆ AngleDelta()

static float AngleDelta ( float  angle1,
float  angle2 
)
inlinestatic

Definition at line 176 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 170 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 135 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 140 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 145 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 85 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 81 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 77 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 73 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 125 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 160 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 165 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 150 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 155 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 51 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 47 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 43 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 39 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 63 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 56 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 34 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 101 of file MathUtils.h.

◆ VectorMax()

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

Definition at line 113 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 90 of file MathUtils.h.


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