LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
quad::Line2D Struct Reference

Public Member Functions

 Line2D (const Pt2D &a, const Pt2D &b)
 
bool operator< (const Line2D &l) const
 

Public Attributes

float m
 
float c
 
float minz
 
float maxz
 

Detailed Description

Definition at line 49 of file QuadVtx_module.cc.

Constructor & Destructor Documentation

quad::Line2D::Line2D ( const Pt2D a,
const Pt2D b 
)
inline

Definition at line 50 of file QuadVtx_module.cc.

References quad::Pt2D::z.

51  : m((b.x - a.x) / (b.z - a.z))
52  , c(b.x - m * b.z)
53  , // w(a.energy * b.energy),
54  minz(std::min(a.z, b.z))
55  , maxz(std::max(a.z, b.z))
56  {
57  assert(a.z != b.z); // no vertical lines
58  }

Member Function Documentation

bool quad::Line2D::operator< ( const Line2D l) const
inline

Definition at line 60 of file QuadVtx_module.cc.

References m.

60 { return m < l.m; }

Member Data Documentation

float quad::Line2D::c

Definition at line 62 of file QuadVtx_module.cc.

Referenced by quad::LinesFromPoints(), and quad::MapFromLines().

float quad::Line2D::m

Definition at line 62 of file QuadVtx_module.cc.

Referenced by quad::LinesFromPoints(), quad::MapFromLines(), and operator<().

float quad::Line2D::maxz

Definition at line 62 of file QuadVtx_module.cc.

Referenced by quad::LinesFromPoints(), and quad::MapFromLines().

float quad::Line2D::minz

Definition at line 62 of file QuadVtx_module.cc.

Referenced by quad::LinesFromPoints(), and quad::MapFromLines().


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