|
ESyS-Particle
2.3.4
|
Just methods to calculate the position and dimension of a 2D sphere under given constraints (see the .cpp file). More...
#include <Sphere2d.h>
Static Public Member Functions | |
| static bool | FillIn (const Vec3 &, const Vec3 &, const Vec3 &, double, double, double, Vec3 &, double &) |
| static bool | FillInWP (const Vec3 &, const Vec3 &, const Vec3 &, const Vec3 &, double, double, Vec3 &, double &) |
| static bool | FillInWP (const Vec3 &, const Vec3 &, const Vec3 &, double, double, Vec3 &, int wsol=1) |
Static Private Attributes | |
| static double | NearZero =1e-8 |
Just methods to calculate the position and dimension of a 2D sphere under given constraints (see the .cpp file).
|
static |
Fit circle between 3 circles
| iP1 | center of 1st circle |
| iP2 | center of 2nd circle |
| iP3 | center of 3rd circle |
| r1 | radius of 1st circle |
| r2 | radius of 2st circle |
| r3 | radius of 3rd circle |
| M | center of fitted circle (output) |
| r | radius of fitted circle (output) |
References cross(), Vec3::X(), and Vec3::Y().
Referenced by esys::lsm::TwoDSphereFitter< TmplFitTraits >::findAFit(), esys::lsm::TwoDSphereSphereFitter< TmplFitTraits >::findAFit(), esys::lsm::TwoDParticleFitter::findAFit(), and ARandomAssembly2D::findAFit().


|
static |
Fit circle between 2 circles and a line
| iP1 | center of 1st circle |
| iP2 | center of 2nd circle |
| iO | origin of line |
| iD | direction of line |
| r1 | radius of 1st circle |
| r2 | radius of 2st circle |
| M | center of fitted circle (output) |
| r | radius of fitted circle (output) |
References cross(), NearZero, Vec3::norm(), Vec3::X(), and Vec3::Y().
Referenced by esys::lsm::TwoDPlaneSphereFitter< TmplFitTraits >::findAFit(), esys::lsm::TwoDPlaneParticleFitter::findAFit(), and ARandomAssembly2D::findAFit().


|
static |
Fit circle of fixed radius between circle and line. The equation has always 2 valid solutions, wsol select which solution sould be returned
| iP1 | center of circle |
| iO | origin of line |
| iD | direction of line |
| r1 | radius of circle |
| M | center of fitted circle (output) |
| r | radius of fitted circle (output) |
| wsol | select which solution sould be returned |
References cross(), Vec3::norm(), Vec3::X(), and Vec3::Y().

|
staticprivate |
Referenced by FillInWP().