Jpp 19.3.0-rc.3
the software that should make you happy
Loading...
Searching...
No Matches
JGEOMETRY2D::JSmallestDistance2D::JCompareY Struct Reference

Auxiliary class for sorting elements. More...

#include <JGeometry2DToolkit.hh>

Public Member Functions

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

Detailed Description

Auxiliary class for sorting elements.

Definition at line 518 of file JGeometry2DToolkit.hh.

Member Function Documentation

◆ operator()()

template<class T >
bool JGEOMETRY2D::JSmallestDistance2D::JCompareY::operator() ( const T & first,
const T & second ) const
inline

Compare y-positions of given points.

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

Definition at line 527 of file JGeometry2DToolkit.hh.

528 {
529 return first.getY() < second.getY();
530 }

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