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

#include <Utilities.h>

Inheritance diagram for pma::bSegmentProjLess:

Public Member Functions

 bSegmentProjLess (const TVector3 &s0, const TVector3 &s1)
 
bool operator() (TVector3 *p1, TVector3 *p2)
 

Private Attributes

TVector3 segStart
 
TVector3 segStop
 

Detailed Description

Definition at line 109 of file Utilities.h.

Constructor & Destructor Documentation

pma::bSegmentProjLess::bSegmentProjLess ( const TVector3 &  s0,
const TVector3 &  s1 
)

Definition at line 351 of file Utilities.cxx.

352  : segStart(s0), segStop(s1)
353 {
354  if (s0 == s1) mf::LogError("pma::bSegmentProjLess") << "Vectors equal!";
355 }
MaybeLogger_< ELseverityLevel::ELsev_error, false > LogError

Member Function Documentation

bool pma::bSegmentProjLess::operator() ( TVector3 *  p1,
TVector3 *  p2 
)
inline

Definition at line 114 of file Utilities.h.

115  {
116  if (p1 && p2) {
117  double b1 = pma::GetSegmentProjVector(*p1, segStart, segStop);
118  double b2 = pma::GetSegmentProjVector(*p1, segStart, segStop);
119  return b1 < b2;
120  }
121  else
122  return false;
123  }
double GetSegmentProjVector(const TVector2 &p, const TVector2 &p0, const TVector2 &p1)
Definition: Utilities.cxx:117

Member Data Documentation

TVector3 pma::bSegmentProjLess::segStart
private

Definition at line 126 of file Utilities.h.

TVector3 pma::bSegmentProjLess::segStop
private

Definition at line 126 of file Utilities.h.


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