Just methods to calculate the position and dimension of a 2D sphere under given constraints (see the .cpp file).
More...
#include <Sphere.h>
List of all members.
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) |
Detailed Description
Just methods to calculate the position and dimension of a 2D sphere under given constraints (see the .cpp file).
- Author:
- David Place, Steffen Abe $Revision$ $Date$
Member Function Documentation
| bool Sphere2D::FillIn |
( |
const Vec3 & |
P1, |
|
|
const Vec3 & |
P2, |
|
|
const Vec3 & |
P3, |
|
|
double |
r1, |
|
|
double |
r2, |
|
|
double |
r3, |
|
|
Vec3 & |
M, |
|
|
double & |
r |
|
) |
| |
|
static |
Fit circle between 3 circles
- Parameters:
-
| 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) |
Referenced by ARandomAssembly2D::findAFit().
| bool Sphere2D::FillInWP |
( |
const Vec3 & |
iP1, |
|
|
const Vec3 & |
iP2, |
|
|
const Vec3 & |
iO, |
|
|
const Vec3 & |
iD, |
|
|
double |
r1, |
|
|
double |
r2, |
|
|
Vec3 & |
M, |
|
|
double & |
r |
|
) |
| |
|
static |
Fit circle between 2 circles and a line
- Parameters:
-
| 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) |
Referenced by ARandomAssembly2D::findAFit().
| bool Sphere2D::FillInWP |
( |
const Vec3 & |
iP1, |
|
|
const Vec3 & |
iO, |
|
|
const Vec3 & |
iD, |
|
|
double |
r1, |
|
|
double |
r, |
|
|
Vec3 & |
M, |
|
|
int |
wsol = 1 |
|
) |
| |
|
static |
Fit circle of fixed radius between circle and line. The equation has always 2 valid solutions, wsol select which solution sould be returned
- Parameters:
-
| 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 |
The documentation for this class was generated from the following files: