Main Page | Class Hierarchy | Class List | Class Members

Plane3D Class Reference

List of all members.

Public Member Functions

 Plane3D (const Point3D &normal, const Point3D &pt)
 Plane3D (const Point3D &p1, const Point3D &p2, const Point3D &p3)
double evaluate (const Point3D &p) const
double operator() (const Point3D &p) const
void makePositive (const Point3D &p)

Public Attributes

Point3D normal
double distance

Detailed Description

This class represents a Plane in 3D.


Constructor & Destructor Documentation

Plane3D::Plane3D const Point3D normal,
const Point3D pt
 

This constructor generates a plane with the specified normal, passing through the point pt.

Plane3D::Plane3D const Point3D p1,
const Point3D p2,
const Point3D p3
 

This constructor generates a plane that contains the triangle specified by the three vertices.


Member Function Documentation

double Plane3D::evaluate const Point3D p  )  const
 

This method evalues the plane equation at the specified point, returning p.dot(normal)+distance.

void Plane3D::makePositive const Point3D p  ) 
 

This method orients the plane so that the value of the plane function at p is non-negative.

double Plane3D::operator() const Point3D p  )  const
 

This method evalues the plane equation at the specified point, returning p.dot(normal)+distance.


Member Data Documentation

double Plane3D::distance
 

(Minus) the normal distance of the plane from the origin

Point3D Plane3D::normal
 

The normal of the plane


Generated on Wed Feb 22 15:44:23 2006 for Assignment 2 by  doxygen 1.4.1