Engauge Digitizer
2
Toggle main menu visibility
Loading...
Searching...
No Matches
Point
PointComparator.h
Go to the documentation of this file.
1
/******************************************************************************************************
2
* (C) 2014 markummitchell@github.com. This file is part of Engauge Digitizer, which is released *
3
* under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file *
4
* LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. *
5
******************************************************************************************************/
6
7
#ifndef POINT_COMPARATOR_H
8
#define POINT_COMPARATOR_H
9
10
#include "
Point.h
"
11
13
struct
PointComparator
14
{
16
bool
operator()
(
const
Point
&a,
const
Point
&b)
const
17
{
18
return
a.
ordinal
() < b.
ordinal
();
19
}
20
};
21
22
#endif
// POINT_COMPARATOR_H
Point.h
Point
Class that represents one digitized point. The screen-to-graph coordinate transformation is always ex...
Definition
Point.h:26
Point::ordinal
double ordinal(ApplyHasCheck applyHasCheck=KEEP_HAS_CHECK) const
Get method for ordinal. Skip check if copying one instance to another.
Definition
Point.cpp:386
PointComparator
Comparator for sorting Point class.
Definition
PointComparator.h:14
PointComparator::operator()
bool operator()(const Point &a, const Point &b) const
Comparison function used by sorting algorithms.
Definition
PointComparator.h:16
Generated on
for Engauge Digitizer by
1.17.0