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

World. More...

#include <raytracing.hpp>

List of all members.

Public Member Functions

 World (void)
 Constructor.
bool add_object (Object *obj)
 Add an object to the world.
bool intersect (const Ray &ray, Intersection &intersection, Object *object)
 Perform intersection between ray and closest object in world.

Detailed Description

World.


Member Function Documentation

Add an object to the world.

Parameters:
objObject
Returns:
success
bool raytracing::World::intersect ( const Ray ray,
Intersection intersection,
Object object 
)

Perform intersection between ray and closest object in world.

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

Here is the call graph for this function:


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