Inventor/SbMathHelper.h File Reference

#include <Inventor/SbBase.h>
#include <cfloat>
#include <cmath>
#include <Inventor/STL/limits>
#include <Inventor/STL/complex>

Go to the source code of this file.

Namespaces

namespace  SbMathHelper

Functions

SbBool SbMathHelper::floatIsEqual (float A, float B, unsigned int numFloat)
template<typename T >
SbMathHelper::Max (T a, T b)
template<typename T >
SbMathHelper::Min (T a, T b)
template<typename T >
SbMathHelper::shiftValue (T v, int offset)
template<>
float SbMathHelper::shiftValue (float v, int offset)
template<>
double SbMathHelper::shiftValue (double v, int offset)
template<typename T >
SbMathHelper::Clamp (T a, T minV, T maxV)
template<typename T >
SbMathHelper::alignToNextPowerOf2 (T n, size_t shift)
template<typename T >
SbMathHelper::getNextPow2 (T a)
template<int N, typename T >
SbMathHelper::nearestUpperMultipleOf (T v)
template<int N, typename T >
SbMathHelper::nearestLowerMultipleOf (T v)
int SbMathHelper::getNextLog2 (int num)
float SbMathHelper::deg2Rad (float a)
float SbMathHelper::rad2Deg (float a)
bool SbMathHelper::isNaN (double a)
int SbMathHelper::rand ()
void SbMathHelper::srand (unsigned seed)
template<typename T >
bool SbMathHelper::isCoinc (const T &x, const T &y, T tol=(T) OIV_DEF_MATH_HELPER_EPS)
template<typename T >
SbMathHelper::abs (const T &v)
template<>
long int SbMathHelper::abs (const long int &v)
template<>
float SbMathHelper::abs (const float &v)
template<>
double SbMathHelper::abs (const double &v)
template<typename T >
bool SbMathHelper::isLessThan (const T &x, const T &y, T tol=(T) OIV_DEF_MATH_HELPER_EPS)
template<typename T >
bool SbMathHelper::isGreaterThan (const T &x, const T &y, T tol=(T) OIV_DEF_MATH_HELPER_EPS)
template<typename T >
bool SbMathHelper::isLessOrEqualThan (const T &x, const T &y, T tol=(T) OIV_DEF_MATH_HELPER_EPS)
template<typename T >
bool SbMathHelper::isGreaterOrEqualThan (const T &x, const T &y, T tol=(T) OIV_DEF_MATH_HELPER_EPS)
template<typename T >
bool SbMathHelper::checkRangeI (const T &x, const T &min, T max, T tol=(T) OIV_DEF_MATH_HELPER_EPS)
template<typename T >
bool SbMathHelper::checkRangeE (const T &x, const T &min, T max, T tol=(T) OIV_DEF_MATH_HELPER_EPS)
template<typename T >
bool SbMathHelper::isCoincRelativeOrAbsolute (const T &A, const T &B, T maxRelativeError, T maxAbsoluteError)
template<typename T >
int SbMathHelper::sgn (const T &val)
template<typename T >
SbMathHelper::rangeMax ()
template<typename T >
SbMathHelper::rangeMin ()
template<>
float SbMathHelper::rangeMin< float > ()
template<>
double SbMathHelper::rangeMin< double > ()
template<typename T >
SbMathHelper::fract (const T &value)
template<>
float SbMathHelper::fract (const float &value)
template<>
double SbMathHelper::fract (const double &value)
template<>
long double SbMathHelper::fract (const long double &value)

Variables

static const int SbMathHelper::OIV_RAND_MAX = 32767
static const float SbMathHelper::OIV_DEF_MATH_HELPER_EPS = 1.e-6f



bool SbMathHelper::isFinite (double value)
bool SbMathHelper::isFinite (float value)

Open Inventor Toolkit reference manual, generated on 12 Feb 2024
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/