ATLAS Offline Software
Loading...
Searching...
No Matches
Trk::CylinderIntersector Struct Reference

#include <CylinderIntersector.h>

Collaboration diagram for Trk::CylinderIntersector:

Public Member Functions

 CylinderIntersector (double px, double py, double k, double xprime)

Public Attributes

double yOfX
 the result of x
double segLength
 length of the line segment

Detailed Description

  • identical code to TrkExUtils/RealLinearEquation (but forbidden dependency!)

Definition at line 20 of file CylinderIntersector.h.

Constructor & Destructor Documentation

◆ CylinderIntersector()

Trk::CylinderIntersector::CylinderIntersector ( double px,
double py,
double k,
double xprime )
inline

Definition at line 25 of file CylinderIntersector.h.

25 {
26 double deltax = xprime-px;
27 yOfX = py + k*(deltax);
28 double deltay = yOfX-py;
29 segLength = sqrt(deltax*deltax+deltay*deltay);
30 }
@ px
Definition ParamDefs.h:59
@ py
Definition ParamDefs.h:60
double yOfX
the result of x
double segLength
length of the line segment

Member Data Documentation

◆ segLength

double Trk::CylinderIntersector::segLength

length of the line segment

Definition at line 23 of file CylinderIntersector.h.

◆ yOfX

double Trk::CylinderIntersector::yOfX

the result of x

Definition at line 22 of file CylinderIntersector.h.


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