Ray Class Reference

#include <Ray.h>


Public Member Functions

 Ray ()
 Ray (const Point &origin, const Vector &direction)
 ~Ray ()
 Ray (const Ray &copy)
const Point & origin () const
const Vectordirection () const

Data Fields

unsigned char is_neg [3]
Vector inv_direction


Detailed Description

Definition at line 11 of file Ray.h.


Constructor & Destructor Documentation

Ray  )  [inline]
 

Definition at line 17 of file Ray.h.

References Vector::zero().

Ray const Point &  origin,
const Vector direction
[inline]
 

Definition at line 22 of file Ray.h.

~Ray  )  [inline]
 

Definition at line 27 of file Ray.h.

Ray const Ray copy  )  [inline]
 

Definition at line 29 of file Ray.h.


Member Function Documentation

const Vector& direction  )  const [inline]
 

Definition at line 44 of file Ray.h.

Referenced by Primitive::computeUVW(), Triangle::intersect(), Sphere::intersect(), Ring::intersect(), Plane::intersect(), Cyl::intersect(), Box::intersect(), and LambertianMaterial::shade().

const Point& origin  )  const [inline]
 

Definition at line 41 of file Ray.h.

Referenced by Primitive::computeUVW(), Triangle::intersect(), Sphere::intersect(), Ring::intersect(), Plane::intersect(), Cyl::intersect(), Box::intersect(), and LambertianMaterial::shade().


Field Documentation

Vector inv_direction
 

Definition at line 14 of file Ray.h.

Referenced by Box::intersect().

unsigned char is_neg[3]
 

Definition at line 13 of file Ray.h.

Referenced by Box::intersect().


The documentation for this class was generated from the following file:
Generated on Tue Jan 29 21:34:56 2008 for specter by  doxygen 1.4.6