proj home

Files   Classes   Functions   Hierarchy  

d3sphere Class Reference

#include <d3sphere.h>

Inheritance diagram for d3sphere:
Collaboration diagram for d3sphere:

List of all members.

Public Member Functions

 d3sphere (point3< double > const &_center, double const _radius)
virtual double const eval (point3< double > const &X) const

Public Attributes

point3< double > center
double radius


Detailed Description

Definition at line 6 of file d3sphere.h.


Constructor & Destructor Documentation

d3sphere::d3sphere ( point3< double > const &  _center,
double const   _radius 
) [inline]

Definition at line 14 of file d3sphere.h.

00015     : center(_center), radius(_radius) {}


Member Function Documentation

virtual double const d3sphere::eval ( point3< double > const &  X  )  const [inline, virtual]

Implements d3func.

Definition at line 17 of file d3sphere.h.

References center, point3< T >::dot(), and radius.

00018   {
00019     point3<double> Y(X);
00020     Y -= center;
00021     return radius*radius - Y.dot();
00022   }


Member Data Documentation

Definition at line 10 of file d3sphere.h.

Referenced by eval().

Definition at line 12 of file d3sphere.h.

Referenced by eval().


The documentation for this class was generated from the following file:

Generated on Fri Mar 4 00:49:54 2011 for Chelton Evans Source by  doxygen 1.5.8