Main Page | Class Hierarchy | Class List | File List | Class Members

Intersection Class Reference

#include <intersection.h>

Inheritance diagram for Intersection:

List of all members.

Public Member Functions

 Intersection (const SurfacePatch3D *o, const Ray &r)
const SurfacePatch3DhitObject () const
virtual Texturetexture ()
virtual void next ()=0
virtual DBL currentTime ()=0
virtual Vector3 normal ()=0

Protected Attributes

const SurfacePatch3Dhitobject
Ray ray

Detailed Description

Describes the intersection of a ray with an object. Also provides information about the surface point hit.
Author:
Micha Riser


Member Function Documentation

virtual DBL Intersection::currentTime  )  [pure virtual]
 

Returns:
Current time of intersecting. If no more intersection then it returns INTERSECTION_TIME_INFINIT.

const SurfacePatch3D* Intersection::hitObject  )  const [inline]
 

Returns:
a pointer to the object which is hit by the ray

virtual void Intersection::next  )  [pure virtual]
 

Go to the next intersecting point.

virtual Vector3 Intersection::normal  )  [pure virtual]
 

Returns:
the surface normal at the current intersection

Texture * Intersection::texture  )  [virtual]
 

Returns:
the texture at the current intersection


The documentation for this class was generated from the following files:
Generated on Thu Jan 27 12:16:06 2005 for raytracer.kdevelop by doxygen 1.3.8