StdDefs.h File Reference


Detailed Description

Standard definitions.

Author:
Saarland University, Jonas Eckhardt, Simon Wegener

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 Documentation

#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,
 )     ((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,
 )     ((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().

#define STDDEFS_H   STDDEFS_H

Definition at line 8 of file StdDefs.h.


Function Documentation

float frand (  ) 

Definition at line 9 of file StdDefs.cpp.

Referenced by StratifiedSampleGenerator::GetSamples(), RandomSampleGenerator::GetSamples(), and QuadAreaLight::Illuminate().


Generated on Thu Jan 31 21:48:50 2008 for RayTracer by  doxygen 1.5.4