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... | |
container for intersection data (position, normal, and relative position with respect to the ray)
| cpe::intersection::intersection | ( | const vec3 & | x = vec3(), |
| const vec3 & | n = vec3(0,0,1), |
||
| double | t = -1.0 |
||
| ) |
direct constructor
| void cpe::intersection::set | ( | const intersection & | inter | ) |
| 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().