Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

Ray3< T > Class Template Reference

#include <ray.h>

Inheritance diagram for Ray3< T >:

Inheritance graph
List of all members.

Public Member Functions

Point3< T > point (T) const
 Ray3 (const Point3< T > &, const Vector3< T > &)
 Ray3 ()

Public Attributes

Vector3< T > direction
Point3< T > origin

template<class T>
class Ray3< T >


Constructor & Destructor Documentation

template<class T>
Ray3< T >::Ray3  ) 
 

Definition at line 32 of file ray.h.

00032                                 :
00033     origin(0, 0, 0), direction(0, 0, -1)
00034 {
00035 }

template<class T>
Ray3< T >::Ray3 const Point3< T > &  ,
const Vector3< T > & 
 

Definition at line 37 of file ray.h.

00038                                                               :
00039     origin(_origin), direction(_direction)
00040 {
00041 
00042 }


Member Function Documentation

template<class T>
Point3< T > Ray3< T >::point  )  const
 

Definition at line 44 of file ray.h.

References Ray3< T >::direction, and Ray3< T >::origin.

00045 {
00046     return origin + direction * t;
00047 }


Member Data Documentation

template<class T>
Vector3<T> Ray3< T >::direction
 

Definition at line 25 of file ray.h.

Referenced by ApproxPlanetPickTraversal(), ExactPlanetPickTraversal(), and Ray3< T >::point().

template<class T>
Point3<T> Ray3< T >::origin
 

Definition at line 24 of file ray.h.

Referenced by ApproxPlanetPickTraversal(), ExactPlanetPickTraversal(), and Ray3< T >::point().


The documentation for this class was generated from the following file:
Generated on Sat Jan 14 22:33:32 2006 for Celestia by  doxygen 1.4.1