Geant4-11
Public Member Functions
G4VertexComparator Class Reference

#include <G4TessellatedSolid.hh>

Public Member Functions

G4bool operator() (const G4VertexInfo &l, const G4VertexInfo &r) const
 

Detailed Description

Definition at line 118 of file G4TessellatedSolid.hh.

Member Function Documentation

◆ operator()()

G4bool G4VertexComparator::operator() ( const G4VertexInfo l,
const G4VertexInfo r 
) const
inline

Definition at line 121 of file G4TessellatedSolid.hh.

122 {
123 return l.mag2 == r.mag2 ? l.id < r.id : l.mag2 < r.mag2;
124 }

References G4VertexInfo::id, and G4VertexInfo::mag2.


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