Files Classes Functions Hierarchy
#include <d3sphere.h>
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 |
Definition at line 6 of file d3sphere.h.
| d3sphere::d3sphere | ( | point3< double > const & | _center, | |
| double const | _radius | |||
| ) | [inline] |
| 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 }
| point3<double> d3sphere::center |
| double d3sphere::radius |
1.5.8