Main Page | Class Hierarchy | Class List | Class Members

DVR::Math::Ray Class Reference

List of all members.

Public Member Functions

 Ray ()
 Ray (Vector3 origin, Vector3 direction)
Pair Intersects (AxisAlignedBox box)

Static Public Member Functions

Vector3 operator * (Ray ray, float t)

Properties

Vector3 Origin
Vector3 Direction

Detailed Description

Representation of a ray in space, ie a line with an origin and direction.


Constructor & Destructor Documentation

DVR::Math::Ray::Ray  )  [inline]
 

Default constructor.

DVR::Math::Ray::Ray Vector3  origin,
Vector3  direction
[inline]
 

Constructor. Starting point of the ray. Direction the ray is pointing.


Member Function Documentation

Pair DVR::Math::Ray::Intersects AxisAlignedBox  box  )  [inline]
 

Tests whether this ray intersects the given box.

Vector3 DVR::Math::Ray::operator * Ray  ray,
float  t
[inline, static]
 

Gets the position of a point t units along the ray.


Property Documentation

Vector3 DVR::Math::Ray::Direction [get, set]
 

Gets/Sets the direction this ray is pointing. A ray has no length, so the direction goes to infinity.

Vector3 DVR::Math::Ray::Origin [get, set]
 

Gets/Sets the origin of the ray.


The documentation for this class was generated from the following file:
Generated on Tue Nov 30 22:19:44 2004 for DirectVolumeRenderer by doxygen 1.3.6