|
| sphere (double x=0, double y=0, double z=0, double r=1) |
|
virtual | ~sphere () |
|
void | project_points2geom (int dim, double *oldcoords, double *newcoords, double *derivs) const |
|
virtual | ~geomObject () |
|
virtual double | compute_projecterror (int dim, double *oldcoords) const |
|
virtual void | compute_projecterror (int dim, int nverts, double *oldcoords, double &l1err, double &l2err, double &linferr) const |
|
double | Twonorm (int dim, double *vec) const |
|
Definition at line 58 of file geomObject.cpp.
◆ sphere()
sphere::sphere |
( |
double |
x = 0 , |
|
|
double |
y = 0 , |
|
|
double |
z = 0 , |
|
|
double |
r = 1 |
|
) |
| |
|
inline |
◆ ~sphere()
virtual sphere::~sphere |
( |
| ) |
|
|
inlinevirtual |
◆ project_points2geom()
void sphere::project_points2geom |
( |
int |
dim, |
|
|
double * |
oldcoords, |
|
|
double * |
newcoords, |
|
|
double * |
derivs |
|
) |
| const |
|
inlinevirtual |
Implements geomObject.
Definition at line 67 of file geomObject.cpp.
69 if( oldcoords == NULL || newcoords == NULL )
71 throw std::invalid_argument(
"NULL pointer" );
74 std::vector< double > direction;
75 direction.push_back( oldcoords[0] -
centerx );
76 direction.push_back( oldcoords[1] -
centery );
80 direction.push_back( oldcoords[2] -
centerz );
86 for(
int i = 0; i <
dim; ++i )
98 derivs[0] = -direction[1];
99 derivs[1] = direction[0];
110 derivs[0] = direction[0];
111 derivs[1] = direction[1];
112 derivs[2] = direction[2];
117 throw std::invalid_argument(
"dim must be 2 or 3" );
References centerx, centery, centerz, dim, radius, and geomObject::Twonorm().
◆ centerx
◆ centery
◆ centerz
◆ radius
The documentation for this class was generated from the following file: