InfinitePlane Class Reference

#include <InfinitePlane.h>

Inheritance diagram for InfinitePlane:

Primitive

Detailed Description

inherits from Primitive. This class represents an infinite Plane.

Definition at line 16 of file InfinitePlane.h.


Public Member Functions

 InfinitePlane (Vector3D origin, Vector3D normal)
 initializes the infinite plane with its origin and its normal.
 ~InfinitePlane ()
bool Intersect (Ray &ray)
 returns true, if the plane is hit by the ray.
virtual Vector3D GetNormal (Ray &ray)
 returns the normal of the plane.

Private Member Functions

Box CalcBounds ()
 Returns the boundingbox of the plane. A boundingbox does not make any sense for an infinite plane and therefore we return a box of dimension 0...

Private Attributes

Vector3D normal
 The normal vector of the plane.
Vector3D origin
 The origin of the plane.

Constructor & Destructor Documentation

InfinitePlane::InfinitePlane ( Vector3D  origin,
Vector3D  normal 
) [inline]

initializes the infinite plane with its origin and its normal.

Definition at line 48 of file InfinitePlane.h.

References Vector3D::Normalize().

InfinitePlane::~InfinitePlane (  )  [inline]

Definition at line 52 of file InfinitePlane.h.


Member Function Documentation

Box InfinitePlane::CalcBounds (  )  [inline, private, virtual]

Returns the boundingbox of the plane. A boundingbox does not make any sense for an infinite plane and therefore we return a box of dimension 0...

Implements Primitive.

Definition at line 35 of file InfinitePlane.h.

References Box::Extend().

bool InfinitePlane::Intersect ( Ray ray  )  [inline, virtual]

returns true, if the plane is hit by the ray.

Implements Primitive.

Definition at line 59 of file InfinitePlane.h.

References Ray::dir, Dot(), normal, Ray::org, origin, and Ray::t.

Vector3D InfinitePlane::GetNormal ( Ray ray  )  [inline, virtual]

returns the normal of the plane.

Implements Primitive.

Definition at line 72 of file InfinitePlane.h.


Field Documentation

Vector3D InfinitePlane::normal [private]

The normal vector of the plane.

Vector3D normal

Definition at line 22 of file InfinitePlane.h.

Referenced by Intersect().

Vector3D InfinitePlane::origin [private]

The origin of the plane.

Vector3D origin

Definition at line 28 of file InfinitePlane.h.

Referenced by Intersect().


The documentation for this class was generated from the following file:
Generated on Thu Jan 31 21:48:54 2008 for RayTracer by  doxygen 1.5.4