|
Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
|
G4TessellatedGeometryAlgorithms contains standard methods to determine whether (and if so where) simple geometric shapes intersect. More...
#include <G4TessellatedGeometryAlgorithms.hh>
Static Public Member Functions | |
| static G4bool | IntersectLineAndTriangle2D (const G4TwoVector &p, const G4TwoVector &v, const G4TwoVector &p0, const G4TwoVector &e0, const G4TwoVector &e1, G4TwoVector location[2]) |
| static G4int | IntersectLineAndLineSegment2D (const G4TwoVector &p0, const G4TwoVector &d0, const G4TwoVector &p1, const G4TwoVector &d1, G4TwoVector location[2]) |
| static G4double | cross (const G4TwoVector &v1, const G4TwoVector &v2) |
G4TessellatedGeometryAlgorithms contains standard methods to determine whether (and if so where) simple geometric shapes intersect.
Definition at line 74 of file G4TessellatedGeometryAlgorithms.hh.
|
static |
Ficticious "cross-product" function for two 2D vectors.
| [in] | v1 | First 2D vector. |
| [in] | v2 | Second 2D vector. |
Definition at line 243 of file G4TessellatedGeometryAlgorithms.cc.
Referenced by IntersectLineAndLineSegment2D().
|
static |
Determines whether there is an intersection between a line defined by r = p0 + s.d0 and a line-segment with endpoints p1 and p1+d1.
| [in] | p0 | Coefficient of line equation. |
| [in] | d0 | Coefficient of line equation. |
| [in] | p1 | First line-segment end-point.. |
| [in] | d1 | Delta line-segment end-point. |
| [out] | location | The returned location of the intersection. |
Definition at line 163 of file G4TessellatedGeometryAlgorithms.cc.
Referenced by IntersectLineAndTriangle2D().
|
static |
Determines whether there is an intersection between a line defined by r = p + s.v and a triangle defined by vertices p0, p0+e0 and p0+e1.
| [in] | p | Coefficient of line equation. |
| [in] | v | Coefficient of line equation. |
| [in] | p0 | First vertex of triangle. |
| [in] | e0 | Second vertex of triangle. |
| [in] | e1 | Third vertex of triangle. |
| [out] | location | The returned location of the intersection. |
Definition at line 55 of file G4TessellatedGeometryAlgorithms.cc.
Referenced by G4TriangularFacet::Intersect().