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

#include "Utilities.h"

Inheritance diagram for pma::bDistCenterLess2D:

Public Member Functions

 bDistCenterLess2D (const TVector2 &c)
 
bool operator() (TVector2 p1, TVector2 p2)
 

Private Attributes

TVector2 center
 

Detailed Description

Definition at line 114 of file Utilities.h.

Constructor & Destructor Documentation

pma::bDistCenterLess2D::bDistCenterLess2D ( const TVector2 &  c)
inline

Definition at line 118 of file Utilities.h.

118 : center(c) {}

Member Function Documentation

bool pma::bDistCenterLess2D::operator() ( TVector2  p1,
TVector2  p2 
)
inline

Definition at line 120 of file Utilities.h.

References pma::Dist2().

121  {
122  double b1 = pma::Dist2(p1, center);
123  double b2 = pma::Dist2(p2, center);
124  return b1 < b2;
125  }
double Dist2(const TVector2 &v1, const TVector2 &v2)
Definition: Utilities.cxx:19

Member Data Documentation

TVector2 pma::bDistCenterLess2D::center
private

Definition at line 128 of file Utilities.h.


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