Generic container of a shape with intersect method. More...
Public Member Functions | |
object3d () | |
empty constructor More... | |
virtual | ~object3d () |
destructor More... | |
virtual bool | intersect (const ray &ray_data, intersection &intersection_data) const =0 |
Method to call on a generic object to get intersection with a ray. More... | |
Generic container of a shape with intersect method.
cpe::object3d::object3d | ( | ) |
empty constructor
|
virtual |
destructor
|
pure virtual |
Method to call on a generic object to get intersection with a ray.
Implemented in cpe::sphere, and cpe::plane.
Referenced by cpe::compute_first_intersection().