MAV'RIC
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
raytracing::Object Class Reference

Object interface. More...

#include <raytracing.hpp>

Inheritance diagram for raytracing::Object:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual bool intersect (const Ray &ray, Intersection &intersection)=0
 Perform intersection between a ray and the current object.

Detailed Description

Object interface.


Member Function Documentation

virtual bool raytracing::Object::intersect ( const Ray ray,
Intersection intersection 
) [pure virtual]

Perform intersection between a ray and the current object.

Parameters:
rayRay to intersect with (input)
intersectionIntersection point (output)
Returns:
boolean indicating if an intersection was found

Implemented in raytracing::Cylinder, raytracing::Sphere, and raytracing::Plane.


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines