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

Public Methods | |
| Sphere ( const Point& o, double radius ) | |
| virtual double | how_near ( const Point& x ) const |
| signed function giving minimum distance to the surface: surface is actually defined by zero. More... | |
| virtual double | distance ( const Point& x ,const Vector& v, int ) 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 surface. More... | |
| double | radius () const |
| virtual const char* | nameOf () const |
| makes name available to subclasses using the type info facility. More... | |
| virtual void | printOn ( std::ostream& os = std::cout ) const |
| print info about this object. More... | |
Private Attributes | |
| double | _radius |
Definition at line 11 of file Sphere.h.
|
|
Definition at line 9 of file Sphere.cxx. |
|
|
distance along direction v from point x to enter or leave the surface.
Reimplemented from Surface. Definition at line 41 of file Sphere.cxx. |
|
|
signed function giving minimum distance to the surface: surface is actually defined by zero. The distance will be positive if the point is inside the Plane, negative if the point is outside. Reimplemented from Surface. Definition at line 20 of file Sphere.cxx. |
|
|
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 surface.
Reimplemented from Surface. Definition at line 32 of file Sphere.cxx. |
|
|
print info about this object.
Reimplemented from GeomObject. Definition at line 15 of file Sphere.cxx. |
|
|
Definition at line 27 of file Sphere.h. Referenced by how_near(). |
|
|
|
1.2.3 written by Dimitri van Heesch,
© 1997-2000