19#ifndef _MathPLANE_HXX_
20#define _MathPLANE_HXX_
64 MathPlane(
double A = 0,
double B = 0,
double C = 1,
double D = 0,
int Sign = - 1);
116 void Translate(
double dx,
double dy,
double dz,
int count = 0)
override;
125 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.
Infinite plane Shape (or half space).
Definition MathPlane.hxx:44
double GetB()
Definition MathPlane.hxx:83
double fB
2nd component of the normal vector
Definition MathPlane.hxx:149
double GetA()
Definition MathPlane.hxx:79
unsigned IsIncluded(Shape_ptr OtherShape) override
return 1 if the Plane is included in OtherShape otherwise 0
Definition MathPlane.cxx:75
double fD
Plane position.
Definition MathPlane.hxx:151
double fC
3th component of the normal vector
Definition MathPlane.hxx:150
Shape_ptr Clone(int count=0) override
Clone a Shape.
Definition MathPlane.cxx:333
MathPlane * CreateNewInstance(int sign=1) override
a new MathPlane instance.
Definition MathPlane.cxx:376
double fA
1st component of the normal vector
Definition MathPlane.hxx:148
double GetD()
Definition MathPlane.hxx:91
double GetC()
Definition MathPlane.hxx:87
unsigned IsPlane() override
Definition MathPlane.hxx:74
bool PointInShape(double *P, int border) override
true if the point P is in the Shape.
Definition MathPlane.cxx:317
void Norme()
Normalisation of Normal vector.
Definition MathPlane.cxx:55
void Copy(Shape_ptr P) override
Copy all attributs of a Shape (but not attributs of the father classes).
Definition MathPlane.cxx:360
void CalculNot() override
Allocates and calculs the complement of a Plane.
Definition MathPlane.cxx:257
unsigned IsDisjoint(Shape_ptr OtherShape) override
return 1 if the Plane is disjoint of OtherShape otherwise 0
Definition MathPlane.cxx:176
void Rotate(double phi, double theta=0, double psi=0, double *center=nullptr, int count=0) override
Rotate the Shape clockwise.
Definition MathPlane.cxx:287
void Translate(double dx, double dy, double dz, int count=0) override
Translate the Node of (dx, dy, dz).
Definition MathPlane.cxx:274
Abstract class to define geometrical shapes.
Definition Shape.hxx:85