Jpp 19.3.0-rc.1
the software that should make you happy
Loading...
Searching...
No Matches
JGEOMETRY2D::JSmallestDistance2D::JCompareX 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 x-positions of given points.
 

Detailed Description

Auxiliary class for sorting elements.

Definition at line 499 of file JGeometry2DToolkit.hh.

Member Function Documentation

◆ operator()()

template<class T >
bool JGEOMETRY2D::JSmallestDistance2D::JCompareX::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 508 of file JGeometry2DToolkit.hh.

509 {
510 return first.getX() < second.getX();
511 }

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