cpe::intersection_data Struct Reference

container for intersection data (position, normal, and relative position with respect to the ray) More...

+ Collaboration diagram for cpe::intersection_data:

List of all members.

Public Member Functions

 intersection_data (const v3 &x=v3(), const v3 &n=v3(0, 0, 1), const double &t=-1.0)
 direct constructor

Public Attributes

v3 x
 position at the intersection
v3 n
 normal at the intersection
double t
 relative position of the intersection along the ray

Detailed Description

container for intersection data (position, normal, and relative position with respect to the ray)


Constructor & Destructor Documentation

cpe::intersection_data::intersection_data ( const v3 x = v3(),
const v3 n = v3(0,0,1),
const double &  t = -1.0 
)

direct constructor


Member Data Documentation

normal at the intersection

relative position of the intersection along the ray

position at the intersection

Referenced by cpe::ray_tracer::find_intersection_color().


The documentation for this struct was generated from the following files: