#include <HitRecord.h>
Public Member Functions | |
HitRecord (double max) | |
HitRecord (double max, double ep) | |
~HitRecord () | |
bool | hit (double t, const Primitive *hit_prim, const Material *hit_matl) |
returns true if the hit specified is the new smallest value | |
double | minT () const |
const Primitive * | getPrimitive () const |
const Material * | getMaterial () const |
template<typename T> | |
T * | getScratchpad () |
template<typename T> | |
const T * | getScratchpad () const |
Data Fields | |
char | scratchdata [128] |
Definition at line 14 of file HitRecord.h.
|
constructor with EPSILON for the value of epsilon Definition at line 17 of file HitRecord.h. References EPSILON. |
|
constructor with caller-specified value for epsilon Definition at line 24 of file HitRecord.h. |
|
Definition at line 30 of file HitRecord.h. |
|
Definition at line 50 of file HitRecord.h. Referenced by Scene::render(). |
|
Definition at line 47 of file HitRecord.h. Referenced by Scene::render(), and LambertianMaterial::shade(). |
|
Definition at line 61 of file HitRecord.h. References scratchdata. |
|
Definition at line 55 of file HitRecord.h. References scratchdata. |
|
returns true if the hit specified is the new smallest value
Definition at line 34 of file HitRecord.h. Referenced by Triangle::intersect(), Sphere::intersect(), Ring::intersect(), Plane::intersect(), Cyl::intersect(), and Box::intersect(). |
|
Definition at line 44 of file HitRecord.h. Referenced by Primitive::computeUVW(), Cyl::intersect(), and LambertianMaterial::shade(). |
|
Definition at line 66 of file HitRecord.h. Referenced by getScratchpad(), Cyl::intersect(), Box::intersect(), Cyl::normal(), and Box::normal(). |