EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Acts::detail::IntersectionHelper2D Struct Reference

#include <acts/blob/sPHENIX/Core/include/Acts/Surfaces/detail/IntersectionHelper2D.hpp>

Static Public Member Functions

static Intersection2D intersectSegment (const Vector2D &s0, const Vector2D &s1, const Vector2D &origin, const Vector2D &dir)
 
static std::pair
< Intersection2D,
Intersection2D
intersectEllipse (double Rx, double Ry, const Vector2D &origin, const Vector2D &dir)
 
static std::pair
< Intersection2D,
Intersection2D
intersectCircle (double R, const Vector2D &origin, const Vector2D &dir)
 

Detailed Description

Definition at line 19 of file IntersectionHelper2D.hpp.

View newest version in sPHENIX GitHub at line 19 of file IntersectionHelper2D.hpp

Member Function Documentation

static std::pair<Intersection2D, Intersection2D> Acts::detail::IntersectionHelper2D::intersectCircle ( double  R,
const Vector2D origin,
const Vector2D dir 
)
inlinestatic

Intersect the circle

Parameters
RThe radius
originThe Start of intersection line
directionThe Direction of intersection line
Returns
the intersection points

Definition at line 50 of file IntersectionHelper2D.hpp.

View newest version in sPHENIX GitHub at line 50 of file IntersectionHelper2D.hpp

References intersectEllipse().

Referenced by Acts::Test::basicChecks(), and Acts::Test::BOOST_AUTO_TEST_CASE().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

std::pair< Acts::Intersection2D, Acts::Intersection2D > Acts::detail::IntersectionHelper2D::intersectEllipse ( double  Rx,
double  Ry,
const Vector2D origin,
const Vector2D dir 
)
static

Intersect ellipses

Parameters
RxThe radius in x
RyThe radius in y
originThe Start of intersection line
directionThe Direction of intersection line
Returns
the intersection points

Definition at line 35 of file IntersectionHelper2D.cpp.

View newest version in sPHENIX GitHub at line 35 of file IntersectionHelper2D.cpp

References kdfinder::abs(), starlightConstants::alpha, d, Acts::detail::RealQuadraticEquation::first, gamma(), k, Acts::s_epsilon, Acts::detail::RealQuadraticEquation::second, Acts::detail::RealQuadraticEquation::solutions, and x.

Referenced by Acts::Test::basicChecks(), Acts::Test::BOOST_AUTO_TEST_CASE(), and intersectCircle().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Acts::Intersection2D Acts::detail::IntersectionHelper2D::intersectSegment ( const Vector2D s0,
const Vector2D s1,
const Vector2D origin,
const Vector2D dir 
)
static

Intersect two segments

Parameters
s0The Start of the segement
s1The end of the segement
originThe Start of intersection line
directionThe Direction of intersection line
Returns
the intersection point with status

Definition at line 16 of file IntersectionHelper2D.cpp.

View newest version in sPHENIX GitHub at line 16 of file IntersectionHelper2D.cpp

References kdfinder::abs(), d, and Acts::s_epsilon.

Referenced by Acts::Test::BOOST_AUTO_TEST_CASE().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:


The documentation for this struct was generated from the following files: