Public Member Functions | Private Attributes | List of all members
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 129 of file Utilities.h.

Constructor & Destructor Documentation

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

Definition at line 131 of file Utilities.h.

Member Function Documentation

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

Definition at line 134 of file Utilities.h.

135  {
136  double b1 = pma::Dist2(p1, center);
137  double b2 = pma::Dist2(p2, center);
138  return b1 < b2;
139  }
double Dist2(const TVector2 &v1, const TVector2 &v2)
Definition: Utilities.cxx:37

Member Data Documentation

TVector2 pma::bDistCenterLess2D::center
private

Definition at line 142 of file Utilities.h.


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