base.h File Reference

#include <math.h>
#include <assert.h>
#include <limits>
Include dependency graph for math/base.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  vcg::math::MagnitudoComparer< SCALAR >
class  vcg::VoidType
 a type that stands for "void". Useful for Parameter type of a point. More...

Namespaces

namespace  vcg
 

*


namespace  vcg::math

Defines

#define M_PI   3.14159265358979323846
#define SQRT_TWO   1.4142135623730950488
#define static_assert   assert

Functions

double vcg::math::Abs (const double v)
float vcg::math::Abs (const float v)
double vcg::math::Acos (const double v)
float vcg::math::Acos (const float v)
double vcg::math::Asin (const double v)
float vcg::math::Asin (const float v)
double vcg::math::Atan2 (const double v0, const double v1)
float vcg::math::Atan2 (const float v0, const float v1)
template<class SCALAR >
SCALAR vcg::math::Clamp (const SCALAR &val, const SCALAR &minval, const SCALAR &maxval)
double vcg::math::Cos (const double v)
float vcg::math::Cos (const float v)
template<class T >
int vcg::math::IsNAN (T t)
template<class T >
const T & vcg::math::Max (const T &a, const T &b)
template<class T >
const T & vcg::math::Min (const T &a, const T &b)
double vcg::math::Sin (const double v)
float vcg::math::Sin (const float v)
template<class T >
void vcg::math::Sort (T &a, T &b, T &c)
template<class T >
void vcg::math::Sort (T &a, T &b)
template<typename T >
static T vcg::math::Sqr (T a)
double vcg::math::Sqrt (const double v)
float vcg::math::Sqrt (const float v)
float vcg::math::Sqrt (const int v)
float vcg::math::Sqrt (const short v)
template<class T >
void vcg::math::Swap (T &a, T &b)
double vcg::math::ToDeg (const double &a)
float vcg::math::ToDeg (const float &a)
double vcg::math::ToRad (const double &a)
float vcg::math::ToRad (const float &a)

Define Documentation

#define M_PI   3.14159265358979323846

Definition at line 161 of file math/base.h.

#define SQRT_TWO   1.4142135623730950488

Definition at line 165 of file math/base.h.

#define static_assert   assert

static_assert: implemented as a macro for "assert", but it is separated for clarity. Should be used for checking integrity constraints that can be tested at complile time, as the ones involving templated constants in templated classes.

Definition at line 97 of file math/base.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


vcglib
Author(s): Christian Bersch
autogenerated on Fri Jan 11 09:18:28 2013