Generic container of a shape with intersect method. More...
Public Member Functions | |
object3d () | |
empty constructor | |
virtual | ~object3d () |
destructor | |
virtual std::vector < intersection_data > | intersect (const ray &seg) const =0 |
Method to call on a generic object to get intersection with a ray. |
Generic container of a shape with intersect method.
cpe::object3d::object3d | ( | ) | [inline] |
empty constructor
virtual cpe::object3d::~object3d | ( | ) | [inline, virtual] |
destructor
virtual std::vector<intersection_data> cpe::object3d::intersect | ( | const ray & | seg | ) | const [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::ray_tracer::find_inter().