#include <Plane.h>
Inheritance diagram for Plane:

Public Methods | |
| Plane ( const Point& origin, const Vector& n ) | |
| constructor: origin is saved as a reference, n is the vector from the origin to the plane. More... | |
| Plane ( const Point& origin, const Vector& nhat, double dist ) | |
| virtual double | how_near ( const Point& x ) const |
| define the geometry. More... | |
| virtual double | distance ( const Point& x, const Vector& v, int inout) const |
| distance along direction v from point x to enter or leave the surface. More... | |
| virtual Vector | normal ( const Point& x ) const |
| returns normal-vector at Point x, assuming x to be on the plane. More... | |
| virtual void | reverse () |
| reverses sense of surface. More... | |
| virtual Surface& | copy () const |
| make a copy, but using same origin. More... | |
| virtual void | setOffset (double offset) |
| must be supplied by subclass if appropriate. More... | |
| virtual double | offset () const |
| const char* | nameOf () const |
| makes name available to subclasses using the type info facility. More... | |
| void | printOn ( std::ostream& os = std::cout ) const |
| print info about this object. More... | |
Private Attributes | |
| double | m_d |
Inherits origin and constant normal from Surface. Interpret direction data member of Surface as a unit normal vector from the origin to the surface, has data member for magnitude, for efficiency
Definition at line 15 of file Plane.h.
|
|
constructor: origin is saved as a reference, n is the vector from the origin to the plane. Note that inside is defined as the side with the origin. second form is equivalent, but allows plane to pass through origin |
|
|
|
|
|
make a copy, but using same origin.
Reimplemented from Surface. |
|
|
distance along direction v from point x to enter or leave the surface.
Reimplemented from Surface. Definition at line 24 of file Plane.cxx. Referenced by Wedge::distance(). |
|
|
define the geometry.
Reimplemented from Surface. Definition at line 54 of file Plane.h. Referenced by Wedge::how_near(), and Wedge::normal(). |
|
|
makes name available to subclasses using the type info facility.
Reimplemented from GeomObject. |
|
|
returns normal-vector at Point x, assuming x to be on the plane.
Reimplemented from Surface. |
|
|
Reimplemented from Surface. |
|
|
print info about this object.
Reimplemented from GeomObject. |
|
|
reverses sense of surface.
Reimplemented from Surface. |
|
|
must be supplied by subclass if appropriate. Allows the surface to be "moved" by changing the parameter describing the offset of the surface from the origin. Reimplemented from Surface. |
|
|
|
1.2.3 written by Dimitri van Heesch,
© 1997-2000