last update 20 Sep 2009 |
#include "cvrObject.h"
#include "cvrTypes.h"
#include <cmath>
#include <limits>
#include "cvrMath_inline.h"
Go to the source code of this file.
Namespaces | |
namespace | cvr |
Functions | |
template<class T > | |
bool | cvr::closeTo (const T &a, const T &b, const T epsilon=std::numeric_limits< T >::epsilon()) |
template<class T > | |
bool | cvr::closeToZero (const T &a, const T epsilon=std::numeric_limits< T >::epsilon()) |
template<typename T > | |
T | cvr::min (const T x, const T y) |
template<typename T > | |
T | cvr::max (const T x, const T y) |
template<typename T > | |
T | cvr::min (const T x, const T y, const T z) |
template<typename T > | |
T | cvr::max (const T x, const T y, const T z) |
template<typename T > | |
T | cvr::within (const T x, const T lower, const T upper) |
template<typename T > | |
void | cvr::minmax (const T x, const T y, T &theMin, T &theMax) |
template<typename T > | |
void | cvr::minmax (T &theMin, T &theMax) |
template<typename T > | |
void | cvr::minmax (const T x, T &theMin, T &theMax) |
double | cvr::degToRad (const double °) |
float | cvr::degToRad (const float °) |
double | cvr::degToRad (const int deg) |
double | cvr::radToDeg (const double &rad) |
float | cvr::radToDeg (const float &rad) |
byte | cvr::abs (byte x) |
int | cvr::abs (int x) |
float | cvr::abs (float x) |
double | cvr::abs (const double &x) |
template<typename T > | |
T | cvr::absdiff (const T &x, const T &y) |
double | cvr::reciprocal (const double &x) |
float | cvr::reciprocal (const float &x) |
double | cvr::oneMinus (const double &x) |
float | cvr::oneMinus (const float &x) |
int | cvr::oneMinus (const int x) |
template<typename T > | |
T | cvr::rectify (const T &x) |
template<typename T > | |
T | cvr::sqr (const T &x) |
template<typename T > | |
T | cvr::sqrAbs (const T &x) |
template<typename T > | |
T | cvr::conj (const T cn) |
int | cvr::sqrt (int x) |
unsigned int | cvr::sqrt (unsigned int x) |
float | cvr::sqrt (const float &x) |
double | cvr::sqrt (const double &x) |
template<typename T > | |
T | cvr::sqrtrect (const T x) |
float | cvr::sigmoid (const float x) |
double | cvr::sigmoid (const double &x) |
double | cvr::sigmoid (const int x) |
template<typename T > | |
T | cvr::signum (T x) |
template<typename T > | |
T | cvr::signum0 (T x) |
template<typename T > | |
bool | cvr::even (const T x) |
template<typename T > | |
bool | cvr::odd (const T x) |
Variables | |
const double | cvr::Pi = 3.1415926535897932 |
const double | cvr::NaN = log(-1.0) |
const double | cvr::Inf = tan(Pi/2.0) |