|
Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
|
G4QuadrangularFacet defines a facet with 4 vertices, used for the contruction of G4TessellatedSolid. Vertices shall be in the same plane and be supplied in anti-clockwise order looking from the outsider of the solid where it belongs. More...
#include <G4QuadrangularFacet.hh>
Additional Inherited Members | |
| Protected Attributes inherited from G4VFacet | |
| G4double | kCarTolerance |
| Static Protected Attributes inherited from G4VFacet | |
| static const G4double | dirTolerance = 1.0E-14 |
G4QuadrangularFacet defines a facet with 4 vertices, used for the contruction of G4TessellatedSolid. Vertices shall be in the same plane and be supplied in anti-clockwise order looking from the outsider of the solid where it belongs.
Definition at line 68 of file G4QuadrangularFacet.hh.
| G4QuadrangularFacet::G4QuadrangularFacet | ( | const G4ThreeVector & | Pt0, |
| const G4ThreeVector & | vt1, | ||
| const G4ThreeVector & | vt2, | ||
| const G4ThreeVector & | vt3, | ||
| G4FacetVertexType | vType ) |
Constructs a facet with 4 vertices, given its parameters.
| [in] | Pt0 | The anchor point, first vertex. |
| [in] | vt1 | Second vertex. |
| [in] | vt2 | Third vertex. |
| [in] | vt3 | Fourth vertex. |
| [in] | vType | The positioning type for the vertices, either: "ABSOLUTE" - vertices set in anti-clockwise order when looking from the outsider. "RELATIVE" - first vertex is Pt0, second is Pt0+vt1, third vertex is Pt0+vt2 and fourth is Pt0+vt3, still in anti-clockwise order. |
Definition at line 50 of file G4QuadrangularFacet.cc.
Referenced by G4QuadrangularFacet(), GetClone(), operator=(), and ~G4QuadrangularFacet().
|
overridedefault |
Default Destructor.
| G4QuadrangularFacet::G4QuadrangularFacet | ( | const G4QuadrangularFacet & | right | ) |
Copy constructor and assignment operator.
Definition at line 208 of file G4QuadrangularFacet.cc.
| G4ThreeVector G4QuadrangularFacet::Distance | ( | const G4ThreeVector & | p | ) |
Determines the vector between p and the closest point on the facet to p.
Definition at line 241 of file G4QuadrangularFacet.cc.
Referenced by Distance(), and Distance().
|
overridevirtual |
Determines the closest distance between point p and the facet.
Implements G4VFacet.
Definition at line 255 of file G4QuadrangularFacet.cc.
|
overridevirtual |
Determines the distance to point 'p'. kInfinity is returned if either: (1) outgoing is TRUE and the dot product of the normal vector to the facet and the displacement vector from p to the triangle is negative. (2) outgoing is FALSE and the dot product of the normal vector to the facet and the displacement vector from p to the triangle is positive.
Implements G4VFacet.
Definition at line 264 of file G4QuadrangularFacet.cc.
|
overridevirtual |
Calculates the furthest the quadrangle extends in fA particular direction defined by the vector axis.
Implements G4VFacet.
Definition at line 285 of file G4QuadrangularFacet.cc.
|
overridevirtual |
Auxiliary method for returning the surface area.
Implements G4VFacet.
Definition at line 337 of file G4QuadrangularFacet.cc.
|
inlineoverridevirtual |
Returns the circumcentre point of the facet.
Implements G4VFacet.
|
overridevirtual |
Returns a pointer to a newly allocated duplicate copy of the facet.
Implements G4VFacet.
Definition at line 232 of file G4QuadrangularFacet.cc.
|
overridevirtual |
Returns the type ID, "G4QuadrangularFacet" of the facet.
Implements G4VFacet.
Definition at line 345 of file G4QuadrangularFacet.cc.
|
inlineoverridevirtual |
Returns the number of vertices, i.e. 4.
Implements G4VFacet.
|
overridevirtual |
Auxiliary method to get a uniform random point on the facet.
Implements G4VFacet.
Definition at line 324 of file G4QuadrangularFacet.cc.
|
inlineoverridevirtual |
Returns the radius to the anchor point and centered on the circumcentre.
Implements G4VFacet.
|
overridevirtual |
Returns the normal vector to the face.
Implements G4VFacet.
Definition at line 352 of file G4QuadrangularFacet.cc.
Referenced by Distance().
|
inlineoverridevirtual |
Returns the vertex based on the index 'i'.
Implements G4VFacet.
Referenced by Extent(), G4QuadrangularFacet(), and GetClone().
|
overridevirtual |
Finds the next intersection when going from 'p' in the direction of 'v'. If 'outgoing' is true, only consider the face if we are going out through the face; otherwise, if false, only consider the face if we are going in through the face.
Implements G4VFacet.
Definition at line 299 of file G4QuadrangularFacet.cc.
|
inlineoverridevirtual |
Returns true if the facet is defined.
Implements G4VFacet.
| G4QuadrangularFacet & G4QuadrangularFacet::operator= | ( | const G4QuadrangularFacet & | right | ) |
Definition at line 219 of file G4QuadrangularFacet.cc.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Implements G4VFacet.