Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

Intersection Class Reference

Special class that handles the association of a Ray and a Surface object to find the intersection if any. More...

#include <Intersection.h>

List of all members.

Public Methods

 Intersection (const Ray& r, const Surface & s )
double distance (double dist, int sign)
 return the actual intersection, or FLT_MAX. sign>0 -> leaving; sign<0 -> entering. More...


Private Attributes

const Rayray
const Surfacesurf


Detailed Description

Special class that handles the association of a Ray and a Surface object to find the intersection if any.


Both Ray and Surface are polymorphic

Definition at line 16 of file Intersection.h.


Constructor & Destructor Documentation

Intersection::Intersection ( const Ray & r,
const Surface & s ) [inline]
 

Definition at line 20 of file Intersection.h.


Member Function Documentation

double Intersection::distance ( double maxStep,
int sign )
 

return the actual intersection, or FLT_MAX. sign>0 -> leaving; sign<0 -> entering.

Definition at line 13 of file Intersection.cxx.

Referenced by Volume::distanceToEnter().


Member Data Documentation

const Ray & Intersection::ray [private]
 

Definition at line 29 of file Intersection.h.

const Surface & Intersection::surf [private]
 

Definition at line 30 of file Intersection.h.


The documentation for this class was generated from the following files:
Generated at Wed Nov 21 12:20:13 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000