ESyS-Particle  4.0.1
Static Public Member Functions
Sphere2D Class Reference

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:
iP1center of 1st circle
iP2center of 2nd circle
iP3center of 3rd circle
r1radius of 1st circle
r2radius of 2st circle
r3radius of 3rd circle
Mcenter of fitted circle (output)
rradius of fitted circle (output)

Referenced by ARandomAssembly2D::findAFit().

Here is the caller graph for this function:

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:
iP1center of 1st circle
iP2center of 2nd circle
iOorigin of line
iDdirection of line
r1radius of 1st circle
r2radius of 2st circle
Mcenter of fitted circle (output)
rradius of fitted circle (output)

Referenced by ARandomAssembly2D::findAFit().

Here is the caller graph for this function:

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:
iP1center of circle
iOorigin of line
iDdirection of line
r1radius of circle
Mcenter of fitted circle (output)
rradius of fitted circle (output)
wsolselect which solution sould be returned

The documentation for this class was generated from the following files: