1 #ifndef __JGEOMETRY3DTESTKIT__ 
    2 #define __JGEOMETRY3DTESTKIT__ 
   20 namespace JGEOMETRY3D {}
 
   21 namespace JPP { 
using namespace JGEOMETRY3D; }
 
   23 namespace JGEOMETRY3D {
 
   37                         getRandom<double>(-1.0, +1.0),
 
   38                         getRandom<double>(-1.0, +1.0));
 
   51     gRandom->Sphere(x, y, z, 1.0);
 
   66     gRandom->Sphere(x, y, z, 1.0);
 
   68     const double alpha = getRandom<double>(-2.0*
PI, +2.0*
PI);
 
   82                           getRandom<double>(0.0, 
PI),
 
   83                           getRandom<double>(0.0, 
PI));
 
  109     const double R3  = gRandom->Uniform(0.0, R3max);
 
  110     const double ct  = gRandom->Uniform(-1.0, +1.0);
 
  111     const double phi = gRandom->Uniform(-
PI, +
PI);
 
  113     const double R   = cbrt(R3);
 
  114     const double st  = sqrt((1.0 + ct) * (1.0 - ct));
 
  133     const double R2  = gRandom->Uniform(0.0, R2max);
 
  134     const double phi = gRandom->Uniform(-
PI, +
PI);
 
  135     const double z   = gRandom->Uniform(cylinder.
getZmin(), cylinder.
getZmax());
 
  137     const double R   = sqrt(R2);
 
  140                      cylinder.
getY()  +  R * sin(phi),
 
Data structure for Euler angles in three dimensions. 
 
double getRadius() const 
Get radius. 
 
Data structure for direction in three dimensions. 
 
double getZmin() const 
Get minimal z position. 
 
Definition of random value generator. 
 
double getY() const 
Get y position. 
 
Data structure for vector in three dimensions. 
 
double getX() const 
Get x position. 
 
static const double PI
Mathematical constants. 
 
const JPosition3D & getPosition() const 
Get position. 
 
JVector3D getRandomPosition(const JSphere3D &sphere)
Get random position. 
 
then usage $script[distance] fi case set_variable R
 
Data structure for unit quaternion in three dimensions. 
 
double getZmax() const 
Get maximal z position. 
 
double getRadius() const 
Get radius. 
 
T getRandom()
Get random value. 
 
Data structure for position in three dimensions. 
 
Data structure for normalised vector in three dimensions. 
 
void randomize(Vec *p)
Randomize 3D vector.