Definition in file StdDefs.h.
#include <cfloat>
#include <cstdlib>
#include <cmath>
#include <algorithm>
#include <utility>
#include <vector>
Go to the source code of this file.
Defines | |
#define | STDDEFS_H STDDEFS_H |
#define | PAIR std::pair<float, float> |
#define | Epsilon 0.0000005 |
#define | Infinity FLT_MAX |
#define | MIN(a, b) ((a)<(b)?(a):(b)) |
#define | MAX(a, b) ((a)>(b)?(a):(b)) |
Functions | |
float | frand () |
#define Epsilon 0.0000005 |
Definition at line 19 of file StdDefs.h.
Referenced by QuadAreaLight::Illuminate(), PointLight::Illuminate(), DepthOfFieldCamera::InitRay(), Triangle::Intersect(), Sphere::Intersect(), KDTree::Intersect(), Box::Intersect(), and KDTree::KDNode::leafIntersect().
#define Infinity FLT_MAX |
Definition at line 20 of file StdDefs.h.
Referenced by Box::Clear(), Box::Intersect(), Ray::Ray(), UniAxialCrystalShader::Shade(), TransparentShader::Shade(), SteelShader::Shade(), SilverShader::Shade(), MirrorShader::Shade(), GoldShader::Shade(), and CopperShader::Shade().
#define MAX | ( | a, | |||
b | ) | ((a)>(b)?(a):(b)) |
Definition at line 24 of file StdDefs.h.
Referenced by Texture2D::_GetTexel(), FresnelDielectric::Evaluate(), Box::Intersect(), Max(), and TransparentShader::Shade().
#define MIN | ( | a, | |||
b | ) | ((a)<(b)?(a):(b)) |
Definition at line 23 of file StdDefs.h.
Referenced by Texture2D::_GetTexel(), Box::Intersect(), and Min().
#define PAIR std::pair<float, float> |
Definition at line 17 of file StdDefs.h.
Referenced by Texture2D::_GetSmoothTexel(), TexturedSmoothTriangle::GetUV(), Primitive::GetUV(), Box::Intersect(), pairFromStream(), Object::ParseOBJ(), PlasmaShader::Shade(), CloudShader::Shade(), and CenterMapShader::Shade().
float frand | ( | ) |
Definition at line 9 of file StdDefs.cpp.
Referenced by StratifiedSampleGenerator::GetSamples(), RandomSampleGenerator::GetSamples(), and QuadAreaLight::Illuminate().