container for intersection data (position, normal, and relative position with respect to the ray) More...
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 |
container for intersection data (position, normal, and relative position with respect to the ray)
cpe::intersection_data::intersection_data | ( | const v3 & | x = v3() , |
const v3 & | n = v3(0,0,1) , |
||
const double & | t = -1.0 |
||
) |
direct constructor
normal at the intersection
double cpe::intersection_data::t |
relative position of the intersection along the ray
position at the intersection
Referenced by cpe::ray_tracer::find_intersection_color().