| MADNESS
    version 0.9
    | 
A spherical surface (3 dimensions) More...
#include <sdf_shape_3D.h>


| Public Member Functions | |
| SDFSphere (const double radius, const coord_3d ¢er) | |
| SDF for a sphere.  More... | |
| double | sdf (const coord_3d &pt) const | 
| Computes the normal distance.  More... | |
| coord_3d | grad_sdf (const coord_3d &pt) const | 
| Computes the gradient of the SDF.  More... | |
|  Public Member Functions inherited from madness::SignedDFInterface< 3 > | |
| virtual double | sdf (const Vector< double, NDIM > &x) const =0 | 
| Returns the signed distance from the surface,.  More... | |
| virtual Vector< double, NDIM > | grad_sdf (const Vector< double, NDIM > &x) const =0 | 
| Returns the gradient of the signed distance from the surface (i.e., dsdf(x)/dx[i] )  More... | |
| virtual | ~SignedDFInterface () | 
| Protected Attributes | |
| const double | radius | 
| Radius of sphere.  More... | |
| const coord_3d | center | 
| Center of sphere.  More... | |
A spherical surface (3 dimensions)
| 
 | inline | 
SDF for a sphere.
| radius | The radius of the sphere | 
| center | The center of the sphere | 
Computes the gradient of the SDF.
| pt | Point at which to compute the gradient | 
References madness::g, and sqrt().
| 
 | inline | 
| 
 | protected | 
Center of sphere.
| 
 | protected | 
Radius of sphere.
Referenced by sdf().
 1.8.8
 1.8.8