67 MathZTorus(
double TubeR,
double TorusR,
double Xc = 0,
double Yc = 0,
double Zc = 0,
int Sign = - 1);
118 void Translate(
double dx,
double dy,
double dz,
int count = 0)
override;
128 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 MathTube class.
Header file for Shape class and Shape_ptr type.
Define a MathZTorus Shape.
Definition MathZTorus.hxx:49
double GetZ()
Definition MathZTorus.hxx:97
bool PointInShape(double *P, int border) override
true if the point P is in the Shape.
Definition MathZTorus.cxx:202
vector< double > fOrigin
Definition MathZTorus.hxx:165
unsigned IsZTorus() override
Definition MathZTorus.hxx:76
MathZTorus * CreateNewInstance(int sign=1) override
a new MathZTorus instance.
Definition MathZTorus.cxx:239
Shape_ptr fBoundingShape
Definition MathZTorus.hxx:166
double GetX()
Definition MathZTorus.hxx:89
void CalculNot() override
Allocates and calculs the complement of a ZTorus.
Definition MathZTorus.cxx:144
void Copy(Shape_ptr S) override
Copy all attributs of a Shape (but not attributs of the father classes).
Definition MathZTorus.cxx:92
unsigned IsIncluded(Shape_ptr OtherShape) override
return 1 if the ZTorus is included in OtherShape otherwise 0
Definition MathZTorus.cxx:108
double GetVirtualSphereRadius() override
returns the radius of a Sphere containing the Shape
Definition MathZTorus.cxx:223
double fTubeR
Radius of the tube of the torus.
Definition MathZTorus.hxx:163
double GetTubeR()
Definition MathZTorus.hxx:81
void Rotate(double phi, double theta=0, double psi=0, double *center=nullptr, int count=0) override
Rotate the Shape clockwise.
Definition MathZTorus.cxx:187
double fTorusR
Radius of the torus.
Definition MathZTorus.hxx:164
double GetTorusR()
Definition MathZTorus.hxx:85
vector< double > GetOrigin()
Definition MathZTorus.hxx:101
void Translate(double dx, double dy, double dz, int count=0) override
Translate the Node of (dx, dy, dz).
Definition MathZTorus.cxx:168
Shape_ptr GetBoundingShape()
Returns the bounding shape of the hexagon, even if null.
Definition MathZTorus.cxx:194
unsigned IsDisjoint(Shape_ptr OtherShape) override
return 1 if the ZTorus is disjoint of OtherShape otherwise 0
Definition MathZTorus.cxx:129
double * GetVirtualSphereCenter() override
returns the center of a Sphere containing the Shape
Definition MathZTorus.cxx:229
double GetY()
Definition MathZTorus.hxx:93
Shape_ptr Clone(int count=0) override
Clone a Shape.
Definition MathZTorus.cxx:61
Abstract class to define geometrical shapes.
Definition Shape.hxx:85