cpe::intersection Struct Reference

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

+ Collaboration diagram for cpe::intersection:

Public Member Functions

 intersection (const vec3 &x=vec3(), const vec3 &n=vec3(0, 0, 1), double t=-1.0)
 direct constructor More...
 
void set (const vec3 &x, const vec3 &n, double t)
 set intersection with data More...
 
void set (const intersection &inter)
 set intersection from an other one More...
 

Public Attributes

vec3 x
 position at the intersection More...
 
vec3 n
 normal at the intersection More...
 
double t
 relative position of the intersection along the ray More...
 

Detailed Description

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

Constructor & Destructor Documentation

cpe::intersection::intersection ( const vec3 x = vec3(),
const vec3 n = vec3(0,0,1),
double  t = -1.0 
)

direct constructor

Member Function Documentation

void cpe::intersection::set ( const vec3 x,
const vec3 n,
double  t 
)

set intersection with data

References n, t, and x.

void cpe::intersection::set ( const intersection inter)

set intersection from an other one

References n, t, and x.

Member Data Documentation

vec3 cpe::intersection::n

normal at the intersection

Referenced by cpe::operator<<(), and set().

double cpe::intersection::t

relative position of the intersection along the ray

Referenced by cpe::operator<<(), and set().

vec3 cpe::intersection::x

position at the intersection

Referenced by cpe::operator<<(), and set().


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