Plane Class Reference

An infinite plane. More...

#include <Plane.h>

Inherits Primitive.


Public Member Functions

 Plane (Material *material, const Vector &n, const Point &point)
virtual ~Plane ()
virtual void getBounds (BoundingBox &bbox) const
virtual void intersect (HitRecord &hit, const RenderContext &context, const Ray &ray) const
 Intersect ray with primitive.
virtual void normal (Vector &normal, const RenderContext &context, const Point &hitpos, const Ray &ray, const HitRecord &hit) const
 Return normal for the hit location. Generally called after all ray-geometry intersection to get the normal for the hit point.
void normal (Vector &normal)


Detailed Description

An infinite plane.

Definition at line 18 of file Plane.h.


Constructor & Destructor Documentation

Plane Material material,
const Vector n,
const Point &  point
 

Definition at line 13 of file Plane.cc.

References Dot(), and Vector::normalize().

~Plane  )  [virtual]
 

Definition at line 20 of file Plane.cc.


Member Function Documentation

void getBounds BoundingBox bbox  )  const [virtual]
 

Implements Object.

Definition at line 39 of file Plane.cc.

void intersect HitRecord hit,
const RenderContext context,
const Ray ray
const [virtual]
 

Intersect ray with primitive.

Implements Primitive.

Definition at line 24 of file Plane.cc.

References Ray::direction(), Dot(), HitRecord::hit(), Primitive::matl, and Ray::origin().

Referenced by Cyl::intersect().

void normal Vector normal  ) 
 

void normal Vector normal,
const RenderContext context,
const Point &  hitpos,
const Ray ray,
const HitRecord hit
const [virtual]
 

Return normal for the hit location. Generally called after all ray-geometry intersection to get the normal for the hit point.

Implements Primitive.

Definition at line 33 of file Plane.cc.


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