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

Method PQbucket

src/LNLib/Algorithm/Voronoi.cpp:602–611  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

600}
601
602int LNLib::VoronoiDiagramGenerator::PQbucket(struct Halfedge* he)
603{
604 int bucket;
605
606 bucket = (int)((he->ystar - ymin) / deltay * PQhashsize);
607 if (bucket < 0) bucket = 0;
608 if (bucket >= PQhashsize) bucket = PQhashsize - 1;
609 if (bucket < PQmin) PQmin = bucket;
610 return(bucket);
611}
612
613int LNLib::VoronoiDiagramGenerator::PQempty()
614{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected