LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
dbsPoint Class Reference

Public Member Functions

 dbsPoint (double X=0.0, double Y=0.0, double dX=0.0, double dY=0.0)
 
BoundingBox bounds () const
 
void Expand (double DX, double DY)
 

Public Attributes

double x
 
double y
 
double dx
 
double dy
 

Detailed Description

Definition at line 42 of file DBScanAlg.cxx.

Constructor & Destructor Documentation

dbsPoint::dbsPoint ( double  X = 0.0,
double  Y = 0.0,
double  dX = 0.0,
double  dY = 0.0 
)
inline

Definition at line 46 of file DBScanAlg.cxx.

References bounds().

47  :x(X), y(Y), dx(dX), dy(dY){};
double x
Definition: DBScanAlg.cxx:44
double dx
Definition: DBScanAlg.cxx:45
Float_t Y
Definition: plot.C:39
double y
Definition: DBScanAlg.cxx:44
double dy
Definition: DBScanAlg.cxx:45
Float_t X
Definition: plot.C:39

Member Function Documentation

BoundingBox dbsPoint::bounds ( ) const

Definition at line 52 of file DBScanAlg.cxx.

References dx, dy, RStarBoundingBox< dimensions >::edges, x, and y.

Referenced by dbsPoint(), cluster::DBScanAlg::InitScan(), cluster::DBScanAlg::RegionQuery(), and cluster::DBScanAlg::RegionQuery_vector().

52  {
53  BoundingBox bb;
54  bb.edges[0].first = x - std::abs(dx);
55  bb.edges[0].second = x + std::abs(dx);
56 
57  bb.edges[1].first = y - std::abs(dy);
58  bb.edges[1].second = y + std::abs(dy);
59  return bb;
60 }
double x
Definition: DBScanAlg.cxx:44
double dx
Definition: DBScanAlg.cxx:45
std::pair< double, double > edges[dimensions]
double y
Definition: DBScanAlg.cxx:44
double dy
Definition: DBScanAlg.cxx:45
void dbsPoint::Expand ( double  DX,
double  DY 
)
inline

Definition at line 49 of file DBScanAlg.cxx.

49 {dx+=DX; dy+=DY;};
double dx
Definition: DBScanAlg.cxx:45
double dy
Definition: DBScanAlg.cxx:45

Member Data Documentation

double dbsPoint::dx

Definition at line 45 of file DBScanAlg.cxx.

Referenced by bounds().

double dbsPoint::dy

Definition at line 45 of file DBScanAlg.cxx.

Referenced by bounds().

double dbsPoint::x

Definition at line 44 of file DBScanAlg.cxx.

Referenced by bounds().


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