63 MathSphere(
double R = 0.01,
double X = 0,
double Y = 0,
double Z = 0,
int Sign = - 1);
110 void Translate(
double dx,
double dy,
double dz,
int count = 0)
override;
119 void Rotate(
double phi,
double theta = 0,
double psi = 0,
double *center =
nullptr,
int count = 0)
override;
#define sign(a)
Definition GenericReactorAssembly.cxx:43
Header file for Monte-Carlo Source abstract class.
Header file for Shape class and Shape_ptr type.
Define a MathSphere Shape.
Definition MathSphere.hxx:48
double fR
Radius of the Sphere.
Definition MathSphere.hxx:152
Shape_ptr Clone(int count=0) override
Clone a Shape.
Definition MathSphere.cxx:61
double GetY()
Definition MathSphere.hxx:85
vector< double > fOrigin
Definition MathSphere.hxx:153
double GetVirtualSphereRadius() override
returns the radius of a Sphere containing the Shape
Definition MathSphere.cxx:538
double GetR()
Definition MathSphere.hxx:77
unsigned IsSphere() override
Definition MathSphere.hxx:72
void CalculNot() override
Allocates and calculs the complement of a Sphere.
Definition MathSphere.cxx:476
MathSphere * CreateNewInstance(int sign=1) override
a new MathSphere instance.
Definition MathSphere.cxx:554
unsigned IsDisjoint(Shape_ptr OtherShape) override
return 1 if the Sphere is disjoint of OtherShape otherwise 0
Definition MathSphere.cxx:352
double GetX()
Definition MathSphere.hxx:81
double * GetVirtualSphereCenter() override
returns the center of a Sphere containing the Shape
Definition MathSphere.cxx:544
vector< double > GetOrigin()
Definition MathSphere.hxx:93
void Copy(Shape_ptr S) override
Copy all attributs of a Shape (but not attributs of the father classes).
Definition MathSphere.cxx:92
void Rotate(double phi, double theta=0, double psi=0, double *center=nullptr, int count=0) override
Rotate the Shape clockwise.
Definition MathSphere.cxx:506
void Translate(double dx, double dy, double dz, int count=0) override
Translate the Node of (dx, dy, dz).
Definition MathSphere.cxx:491
unsigned IsIncluded(Shape_ptr OtherShape) override
return 1 if the Sphere is included in OtherShape otherwise 0
Definition MathSphere.cxx:106
bool PointInShape(double *P, int border) override
true if the point P is in the Shape.
Definition MathSphere.cxx:519
double GetZ()
Definition MathSphere.hxx:89
Abstract class to define geometrical shapes.
Definition Shape.hxx:85