Jpp 19.3.0-rc.2
the software that should make you happy
Loading...
Searching...
No Matches
JGEOMETRY3D::JSmallestDistance3D::JCompareZ Struct Reference

Auxiliary class for sorting elements. More...

#include <JGeometry3DToolkit.hh>

Public Member Functions

template<class T >
bool operator() (const T &first, const T &second) const
 Compare x-positions of given points.
 

Detailed Description

Auxiliary class for sorting elements.

Definition at line 196 of file JGeometry3DToolkit.hh.

Member Function Documentation

◆ operator()()

template<class T >
bool JGEOMETRY3D::JSmallestDistance3D::JCompareZ::operator() ( const T & first,
const T & second ) const
inline

Compare x-positions of given points.

Parameters
firstfirst point
secondsecond point
Returns
true if x of first point less than that of second; else false

Definition at line 205 of file JGeometry3DToolkit.hh.

206 {
207 return first.getZ() < second.getZ();
208 }

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