1 #ifndef INTERSECTION_CALCULATOR_H
2 #define INTERSECTION_CALCULATOR_H
46 static std::pair<double,double>
circle_circle(
double R,
double centreX,
double centreY,
double r);
59 static std::pair<std::pair<double,double>,std::pair<double,double> >
circle_straightLine_xy(
double R,
double inclination,
double xAxisIntersect);
74 static std::pair<double,double>
circle_straightLine(
double R,
double x0,
double y0,
double trackPhi);
92 static std::pair<double,double>
horizonalLine_circle(
double Y,
double centreX,
double centreY,
double r);
109 std::string message ;
117 message =
"NoIntersectionExceptionException: " + text ;
120 virtual const char* what()
const throw() {
return message.c_str() ; }
137 static std::pair<double,double> circle_straightLine_inx_phi(
double R,
double inclination,
double xAxisIntersect);
149 static std::pair<double,double> circle_straightLine_iny_phi(
double R,
double inclination,
double yAxisIntersect);
154 #endif //INTERSECTION_CALCULATOR_H
static std::pair< double, double > circle_straightLine_phi(double R, double inclination, double xAxisIntersect)
Only kept for backwards compatibility.
Definition: IntersectionCalculator.cc:185
A helper class to calculate the intersections of.
Definition: IntersectionCalculator.h:32
static std::pair< double, double > circle_straightLine(double R, double x0, double y0, double trackPhi)
Calculate the intersection of a circular pad row with a straight track.
Definition: IntersectionCalculator.cc:128
static double horizontalLine_straightLine(double Y, double inclination, double xAxisIntersect)
Calculate the intersection of a straight line (pad row) with a straight track parameterised in the di...
Definition: IntersectionCalculator.cc:216
A nested exception which is thrown in case there is no intersection.
Definition: IntersectionCalculator.h:106
static std::pair< double, double > horizonalLine_circle(double Y, double centreX, double centreY, double r)
Calculate the intersection of a straight line (pad row) with a circle.
Definition: IntersectionCalculator.cc:201
static std::pair< double, double > circle_circle(double R, double centreX, double centreY, double r)
Calculate the intersection of a circular pad row with a track circle.
Definition: IntersectionCalculator.cc:14
static std::pair< std::pair< double, double >, std::pair< double, double > > circle_straightLine_xy(double R, double inclination, double xAxisIntersect)
Calculate the intersection of a circular pad row with a straight track parameterised in the direction...
Definition: IntersectionCalculator.cc:95