|
| torus (double x=0, double y=0, double z=0, double aa=0.3, double cc=1.0) |
|
virtual | ~torus () |
|
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 125 of file geomObject.cpp.
◆ torus()
torus::torus |
( |
double |
x = 0 , |
|
|
double |
y = 0 , |
|
|
double |
z = 0 , |
|
|
double |
aa = 0.3 , |
|
|
double |
cc = 1.0 |
|
) |
| |
|
inline |
◆ ~torus()
virtual torus::~torus |
( |
| ) |
|
|
inlinevirtual |
◆ project_points2geom()
void torus::project_points2geom |
( |
int |
dim, |
|
|
double * |
oldcoords, |
|
|
double * |
newcoords, |
|
|
double * |
derivs |
|
) |
| const |
|
inlinevirtual |
Implements geomObject.
Definition at line 134 of file geomObject.cpp.
136 assert(
dim == 3 && oldcoords && newcoords );
140 double direction[3] = { oldcoords[0] - tubecenter[0], oldcoords[1] - tubecenter[1],
141 oldcoords[2] - tubecenter[2] };
150 derivs[0] = direction[0];
151 derivs[1] = direction[1];
152 derivs[2] = direction[2];
155 newcoords[0] = tubecenter[0] +
a * direction[0];
156 newcoords[1] = tubecenter[1] +
a * direction[1];
157 newcoords[2] = tubecenter[2] +
a * direction[2];
References a, c, centerx, centery, centerz, dim, and geomObject::Twonorm().
◆ centerx
◆ centery
◆ centerz
The documentation for this class was generated from the following file: