MCPcopy Create free account
hub / github.com/BIMCoderLiang/LNLib / scomp

Method scomp

src/LNLib/Algorithm/Voronoi.cpp:1482–1490  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1480}
1481
1482int LNLib::scomp(const void* p1, const void* p2)
1483{
1484 struct PointVDG* s1 = (PointVDG*)p1, * s2 = (PointVDG*)p2;
1485 if (s1->y < s2->y) return(-1);
1486 if (s1->y > s2->y) return(1);
1487 if (s1->x < s2->x) return(-1);
1488 if (s1->x > s2->x) return(1);
1489 return(0);
1490}
1491
1492/* return a single in-storage site */
1493struct LNLib::Site* LNLib::VoronoiDiagramGenerator::nextone()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected