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

#include "DBScanAlg.h"

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 35 of file DBScanAlg.h.

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 38 of file DBScanAlg.h.

39  : x(X), y(Y), dx(dX), dy(dY){};
Float_t Y
Definition: plot.C:37
double dy
Definition: DBScanAlg.h:37
double dx
Definition: DBScanAlg.h:37
double x
Definition: DBScanAlg.h:36
double y
Definition: DBScanAlg.h:36
Float_t X
Definition: plot.C:37

Member Function Documentation

BoundingBox dbsPoint::bounds ( ) const

Definition at line 36 of file DBScanAlg.cxx.

References util::abs(), dx, dy, x, and y.

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

37 {
38  BoundingBox bb;
39  bb.edges[0].first = x - std::abs(dx);
40  bb.edges[0].second = x + std::abs(dx);
41 
42  bb.edges[1].first = y - std::abs(dy);
43  bb.edges[1].second = y + std::abs(dy);
44  return bb;
45 }
constexpr auto abs(T v)
Returns the absolute value of the argument.
double dy
Definition: DBScanAlg.h:37
double dx
Definition: DBScanAlg.h:37
RTree::BoundingBox BoundingBox
Definition: DBScanAlg.h:33
double x
Definition: DBScanAlg.h:36
double y
Definition: DBScanAlg.h:36
void dbsPoint::Expand ( double  DX,
double  DY 
)
inline

Definition at line 41 of file DBScanAlg.h.

42  {
43  dx += DX;
44  dy += DY;
45  };
double dy
Definition: DBScanAlg.h:37
double dx
Definition: DBScanAlg.h:37

Member Data Documentation

double dbsPoint::dx

Definition at line 37 of file DBScanAlg.h.

Referenced by bounds().

double dbsPoint::dy

Definition at line 37 of file DBScanAlg.h.

Referenced by bounds().

double dbsPoint::x

Definition at line 36 of file DBScanAlg.h.

Referenced by bounds().


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