LArSoft  v06_85_00
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 112 of file Utilities.h.

Constructor & Destructor Documentation

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

Definition at line 116 of file Utilities.h.

116 : center(c) {}

Member Function Documentation

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

Definition at line 118 of file Utilities.h.

References pma::Dist2().

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

Member Data Documentation

TVector2 pma::bDistCenterLess2D::center
private

Definition at line 126 of file Utilities.h.


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