#include <raytracing.hpp>
Public Member Functions | |
virtual bool | intersect (const Ray &ray, Intersection &intersection)=0 |
Perform intersection between a ray and the current object. |
Object interface.
virtual bool raytracing::Object::intersect | ( | const Ray & | ray, |
Intersection & | intersection | ||
) | [pure virtual] |
Perform intersection between a ray and the current object.
ray | Ray to intersect with (input) |
intersection | Intersection point (output) |
Implemented in raytracing::Cylinder, raytracing::Sphere, and raytracing::Plane.