Public Member Functions | Private Attributes | List of all members
pma::bDistCenterLess3D Class Reference

#include <Utilities.h>

Inheritance diagram for pma::bDistCenterLess3D:

Public Member Functions

 bDistCenterLess3D (const TVector3 &c)
 
bool operator() (TVector3 p1, TVector3 p2)
 

Private Attributes

TVector3 center
 

Detailed Description

Definition at line 145 of file Utilities.h.

Constructor & Destructor Documentation

pma::bDistCenterLess3D::bDistCenterLess3D ( const TVector3 &  c)
inline

Definition at line 147 of file Utilities.h.

Member Function Documentation

bool pma::bDistCenterLess3D::operator() ( TVector3  p1,
TVector3  p2 
)
inline

Definition at line 150 of file Utilities.h.

151  {
152  double b1 = pma::Dist2(p1, center);
153  double b2 = pma::Dist2(p2, center);
154  return b1 < b2;
155  }
double Dist2(const TVector2 &v1, const TVector2 &v2)
Definition: Utilities.cxx:37

Member Data Documentation

TVector3 pma::bDistCenterLess3D::center
private

Definition at line 158 of file Utilities.h.


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