35 Plane(
double A=0,
double B=0,
double C=1,
double D=0,
double Signe=-1);
72 virtual void Translate(
double dx,
double dy,
double dz,
int count=0);
81 virtual void Rotate(
double phi,
double theta=0,
double psi=0,
double *center=0,
int count=0);
unsigned IsPlane()
1 if Shape is a Plane
Definition: Plane.hxx:39
Plane(double A=0, double B=0, double C=1, double D=0, double Signe=-1)
Normal Constructor.
Definition: Plane.cxx:5
double GetB()
return 2nd component of the normal vector
Definition: Plane.hxx:46
double fA
1st component of the normal vector
Definition: Plane.hxx:102
unsigned Inclus(Shape_ptr OtherShape)
return 1 if the Plane is included in OtherShape otherwise 0
Definition: Plane.cxx:43
virtual void Translate(double dx, double dy, double dz, int count=0)
Translate the Node of (dx,dy,dz).
Definition: Plane.cxx:218
Infinite plane Shape.
Definition: Plane.hxx:19
double GetD()
return Plane position
Definition: Plane.hxx:48
double fD
Plane position.
Definition: Plane.hxx:105
double fB
2nd component of the normal vector
Definition: Plane.hxx:103
void Copy(Shape_ptr P)
Copy all attributs of a Shape (but not attributs of the father classes).
Definition: Plane.cxx:346
double fC
3th component of the normal vector
Definition: Plane.hxx:104
Shape_ptr Clone(int count=0)
Clone a Shape.
Definition: Plane.cxx:318
unsigned Disjoint(Shape_ptr OtherShape)
return 1 if the Plane is Disjointed of OtherShape otherwise 0
Definition: Plane.cxx:127
void Norme()
Normalisation of Normal vector.
Definition: Plane.cxx:23
double GetC()
return 3th component of the normal vector
Definition: Plane.hxx:47
void DefineSurface()
Define surface in MCNP format.
Definition: Plane.cxx:252
double GetA()
return 1st component of the normal vector
Definition: Plane.hxx:45
bool PointInShape(double *P, int border)
true if the point P is in the Shape.
Definition: Plane.cxx:303
virtual void Rotate(double phi, double theta=0, double psi=0, double *center=0, int count=0)
Rotate the Shape clockwise.
Definition: Plane.cxx:231
Base class to define shapes.
Definition: Shape.hxx:54
void CalculNot()
Allocates and calculs the complement of a Plane.
Definition: Plane.cxx:201