#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cassert>
#include "std/support.H"
Include dependency graph for global.H:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Namespaces | |
namespace | mlib |
Epsilon Value Accessor Functions | |
Use these inline functions to access the epsilon value variables rather than accessing the variables directly. | |
double | mlib::epsAbsMath () |
double | mlib::epsAbsSqrdMath () |
double | mlib::epsNorMath () |
double | mlib::epsNorSqrdMath () |
double | mlib::epsZeroMath () |
bool | mlib::isZero (double x) |
Tell if a double is so small that it is essentially zero:. | |
bool | mlib::isEqual (double x, double y) |
Tell if two doubles are so close that they are essentially equal:. | |
void | mlib::setEpsAbsMath (double eps) |
Set the value of the absolute epsilon constant (and the absolute epsilon squared constant as well). | |
Epsilon Values | |
Don't use these global variables directly, use the inline functions instead. We have to keep these variables in the header file to be able to inline the access functions. | |
double | mlib::gEpsAbsMath = 1e-8 |
Absolute epsilon. | |
double | mlib::gEpsAbsSqrdMath = 1e-16 |
Absolute epsilon squared. | |
const double | mlib::gEpsNorMath = 1e-10 |
Normalized epsilon. | |
const double | mlib::gEpsNorSqrdMath = 1e-20 |
Normalized epsilon squared. | |
const double | mlib::gEpsZeroMath = 1e-12 |
Really a very small value. | |
Defines | |
#define | TWO_PI (2*M_PI) |
2*pi | |
#define | MLIB_INLINE |
Functions | |
double | mlib::deg2rad (double degrees) |
Converts degrees to radians. | |
double | mlib::rad2deg (double radians) |
Converts radians to degrees. | |
double | mlib::Acos (double x) |
Safe arc cosine function. | |
void | mlib::fn_gdb_will_recognize_so_i_can_set_a_fuggin_breakpoint () |
Definition in file global.H.
|
|
|
2*pi
Definition at line 42 of file global.H. Referenced by GLSphirTexCoordGen::compute_uv(), LoopLoc::limit_normal(), remap(), LoopCalc< COLOR >::smooth_limit_val(), BMESH::Sphere(), mlib::Point3list< L, M, P, V, S >::winding_number(), and mlib::Point2list< L, P, V, S >::winding_number(). |