LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
pma::bDistCenterLess2D Class Reference

#include "Utilities.h"

Public Member Functions

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

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.

131 : center(c) {}

Member Function Documentation

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

Definition at line 133 of file Utilities.h.

References pma::Dist2().

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

Member Data Documentation

TVector2 pma::bDistCenterLess2D::center
private

Definition at line 141 of file Utilities.h.


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