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

Function cmpy

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

Source from the content-addressed store, hash-verified

1#include "primitives3d.cpp"
2double mixed(P(a), P(b), P(c)) { return a % (b * c); }
3bool cmpy(const point3d& a, const point3d& b) {
4 if (abs(a.y-b.y) > EPS) return a.y < b.y;
5 if (abs(a.x-b.x) > EPS) return a.x < b.x;
6 return a.z < b.z; }
7point3d slp;
8bool cmpsl(const point3d& a, const point3d& b) {
9 point3d ad = a-slp, bd = b-slp;

Callers 1

gift_wrapFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected