Class mediapipe::MathUtil
ClassList > mediapipe > MathUtil
Public Static Functions
Type | Name |
---|---|
std::make_unsigned< T >::type | AbsDiff (const T x, const T y) |
const T & | Clamp (const T & low, const T & high, const T & value) |
int64_t | FastInt64Round (double x) |
int64_t | FastInt64Round (float x) |
int64_t | FastInt64Round (long double x) |
int32_t | FastIntRound (double x) |
int32_t | FastIntRound (float x) |
int32_t | FastIntRound (long double x) |
IntOut | Round (FloatIn x) |
IntOut | SafeCast (FloatIn x) |
IntOut | SafeRound (FloatIn x) |
bool | WithinMargin (const T x, const T y, const T margin) |
Public Static Functions Documentation
function AbsDiff
template<typename T>
static inline std::make_unsigned< T >::type mediapipe::MathUtil::AbsDiff (
const T x,
const T y
)
function Clamp
template<typename T>
static inline const T & mediapipe::MathUtil::Clamp (
const T & low,
const T & high,
const T & value
)
function FastInt64Round [1/3]
static inline int64_t mediapipe::MathUtil::FastInt64Round (
double x
)
function FastInt64Round [2/3]
static inline int64_t mediapipe::MathUtil::FastInt64Round (
float x
)
function FastInt64Round [3/3]
static inline int64_t mediapipe::MathUtil::FastInt64Round (
long double x
)
function FastIntRound [1/3]
static inline int32_t mediapipe::MathUtil::FastIntRound (
double x
)
function FastIntRound [2/3]
static inline int32_t mediapipe::MathUtil::FastIntRound (
float x
)
function FastIntRound [3/3]
static inline int32_t mediapipe::MathUtil::FastIntRound (
long double x
)
function Round
template<class IntOut, class FloatIn>
static inline IntOut mediapipe::MathUtil::Round (
FloatIn x
)
function SafeCast
template<class IntOut, class FloatIn>
static inline IntOut mediapipe::MathUtil::SafeCast (
FloatIn x
)
function SafeRound
template<class IntOut, class FloatIn>
static inline IntOut mediapipe::MathUtil::SafeRound (
FloatIn x
)
function WithinMargin
template<typename T>
static inline bool mediapipe::MathUtil::WithinMargin (
const T x,
const T y,
const T margin
)
The documentation for this class was generated from the following file /home/friedel/devel/ILLIXR-plugins/hand_tracking/mediapipe/framework/deps/mathutil.h