Public Member Functions | Public Attributes | List of all members
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){};
double dy
Definition: DBScanAlg.h:37
double dx
Definition: DBScanAlg.h:37
double x
Definition: DBScanAlg.h:36
double y
Definition: DBScanAlg.h:36

Member Function Documentation

BoundingBox dbsPoint::bounds ( ) const

Definition at line 37 of file DBScanAlg.cxx.

38 {
39  BoundingBox bb;
40  bb.edges[0].first = x - std::abs(dx);
41  bb.edges[0].second = x + std::abs(dx);
42 
43  bb.edges[1].first = y - std::abs(dy);
44  bb.edges[1].second = y + std::abs(dy);
45  return bb;
46 }
double dy
Definition: DBScanAlg.h:37
T abs(T value)
double dx
Definition: DBScanAlg.h:37
double x
Definition: DBScanAlg.h:36
std::pair< double, double > edges[dimensions]
double y
Definition: DBScanAlg.h:36
void dbsPoint::Expand ( double  DX,
double  DY 
)
inline

Definition at line 42 of file DBScanAlg.h.

43  {
44  dx += DX;
45  dy += DY;
46  };
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.

double dbsPoint::dy

Definition at line 37 of file DBScanAlg.h.

double dbsPoint::x

Definition at line 36 of file DBScanAlg.h.

double dbsPoint::y

Definition at line 36 of file DBScanAlg.h.


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