#include <epsilon.h>
Classes | |
union | MachineFloat |
Static Public Member Functions | |
static void | SetMin (const float min) |
static void | SetMax (const float max) |
static float | E (const float value) |
static float | E (const Vector &v) |
static float | E (const Point &p) |
static float | E (const BBox &bb) |
static void | Test () |
Static Private Member Functions | |
static float | FloatAdvance (const float value) |
static float | Exp2Float (const int exp) |
static int | FloatSign (const float value) |
static int | FloatExponent (const float value) |
static float | FloatSignificandPrecision (const float value) |
Static Private Attributes | |
static float | minEpsilon = DEFAULT_EPSILON_MIN |
static float | maxEpsilon = DEFAULT_EPSILON_MAX |
Definition at line 56 of file epsilon.h.
static float lux::MachineEpsilon::E | ( | const BBox & | bb | ) | [inline, static] |
Definition at line 83 of file epsilon.h.
References E(), cimg_library::cimg::max(), lux::BBox::pMax, and lux::BBox::pMin.
static float lux::MachineEpsilon::E | ( | const Point & | p | ) | [inline, static] |
Definition at line 78 of file epsilon.h.
References E(), cimg_library::cimg::max(), lux::Point::x, lux::Point::y, and lux::Point::z.
static float lux::MachineEpsilon::E | ( | const Vector & | v | ) | [inline, static] |
Definition at line 73 of file epsilon.h.
References E(), cimg_library::cimg::max(), lux::Vector::x, lux::Vector::y, and lux::Vector::z.
static float lux::MachineEpsilon::E | ( | const float | value | ) | [inline, static] |
Definition at line 64 of file epsilon.h.
References Clamp(), DEBUG, FloatAdvance(), maxEpsilon, and minEpsilon.
Referenced by lux::PerspectiveCamera::Bounds(), lux::OrthoCamera::Bounds(), lux::EnvironmentCamera::Bounds(), lux::BVHAccel::BVHAccel(), E(), evalPath(), lux::SpecularTransmission::f(), lux::NullTransmission::f(), lux::OrthoCamera::GetSamplePosition(), lux::IGIIntegrator::Li(), lux::SpecularTransmission::Pdf(), lux::NullTransmission::Pdf(), lux::Ray::Ray(), lux::VisibilityTester::SetSegment(), Test(), and lux::VisibilityTester::TestOcclusion().
static float lux::MachineEpsilon::Exp2Float | ( | const int | exp | ) | [inline, static, private] |
static float lux::MachineEpsilon::FloatAdvance | ( | const float | value | ) | [inline, static, private] |
Definition at line 100 of file epsilon.h.
References DEFAULT_EPSILON_DISTANCE_FROM_VALUE, lux::MachineEpsilon::MachineFloat::f, and lux::MachineEpsilon::MachineFloat::i.
Referenced by E().
static int lux::MachineEpsilon::FloatExponent | ( | const float | value | ) | [inline, static, private] |
Definition at line 117 of file epsilon.h.
References cimg_library::exp().
static int lux::MachineEpsilon::FloatSign | ( | const float | value | ) | [inline, static, private] |
static float lux::MachineEpsilon::FloatSignificandPrecision | ( | const float | value | ) | [inline, static, private] |
Definition at line 124 of file epsilon.h.
References cimg_library::exp().
void MachineEpsilon::SetMax | ( | const float | max | ) | [static] |
Definition at line 34 of file epsilon.cpp.
References maxEpsilon.
Referenced by lux::Context::exit(), and lux::Context::setEpsilon().
void MachineEpsilon::SetMin | ( | const float | min | ) | [static] |
Definition at line 30 of file epsilon.cpp.
References minEpsilon.
Referenced by lux::Context::exit(), and lux::Context::setEpsilon().
void MachineEpsilon::Test | ( | ) | [static] |
Definition at line 38 of file epsilon.cpp.
References DEFAULT_EPSILON_STATIC, E(), lux::MachineEpsilon::MachineFloat::f, lux::MachineEpsilon::MachineFloat::i, LUX_DEBUG, LUX_NOERROR, and luxError.
float MachineEpsilon::maxEpsilon = DEFAULT_EPSILON_MAX [static, private] |
float MachineEpsilon::minEpsilon = DEFAULT_EPSILON_MIN [static, private] |