![]() |
fpmas 1.6
|
#include <clustered_graph_builder.h>
Public Member Functions | |
DistanceComparator (Point &p) | |
bool | operator() (const Point &p1, const Point &p2) |
A comparator that can be used to compare distances from a reference Point.
|
inline |
DistanceComparator constructor.
p | reference point |
|
inline |
Returns true if and only if the distance from p1
to the reference point is lower than the distance from p2
to the reference point.
p1
is closer to the reference point than `p2