LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
Intersections.h
Go to the documentation of this file.
1 #ifndef LARCOREALG_GEOMETRY_INTERSECTIONS_H
2 #define LARCOREALG_GEOMETRY_INTERSECTIONS_H
3 
4 namespace geo {
5  // Functions to allow determination if two wires intersect, and if so where.
6  // This is useful information during 3D reconstruction.
7  //......................................................................
8 
9  // The following functions are utilized to determine if two wires
10  // in the TPC intersect or not, and if they do then
11  // determine the coordinates of the intersection.
12 
33  bool IntersectLines(double A_start_x,
34  double A_start_y,
35  double A_end_x,
36  double A_end_y,
37  double B_start_x,
38  double B_start_y,
39  double B_end_x,
40  double B_end_y,
41  double& x,
42  double& y);
43 
65  bool IntersectSegments(double A_start_x,
66  double A_start_y,
67  double A_end_x,
68  double A_end_y,
69  double B_start_x,
70  double B_start_y,
71  double B_end_x,
72  double B_end_y,
73  double& x,
74  double& y);
75 }
76 
77 #endif // LARCOREALG_GEOMETRY_INTERSECTIONS_H
Float_t x
Definition: compare.C:6
Float_t y
Definition: compare.C:6
bool IntersectSegments(double A_start_x, double A_start_y, double A_end_x, double A_end_y, double B_start_x, double B_start_y, double B_end_x, double B_end_y, double &x, double &y)
Computes the intersection between two segments on a plane.
bool IntersectLines(double A_start_x, double A_start_y, double A_end_x, double A_end_y, double B_start_x, double B_start_y, double B_end_x, double B_end_y, double &x, double &y)
Computes the intersection between two lines on a plane.
Namespace collecting geometry-related classes utilities.