MCPcopy Create free account
hub / github.com/SuprDewd/CompetitiveProgramming / cmpx

Class cmpx

code/geometry/closest_pair.cpp:3–6  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1#include "primitives.cpp"
2
3struct cmpx { bool operator ()(const point &a,
4 const point &b) const {
5 return abs(real(a) - real(b)) > EPS ?
6 real(a) < real(b) : imag(a) < imag(b); } };
7struct cmpy { bool operator ()(const point &a,
8 const point &b) const {
9 return abs(imag(a) - imag(b)) > EPS ?

Callers 1

closest_pairFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected