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

Method plotinit

src/LNLib/Algorithm/Voronoi.cpp:824–837  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

822}
823
824void LNLib::VoronoiDiagramGenerator::plotinit()
825{
826 float dx, dy, d;
827
828 dy = ymax - ymin;
829 dx = xmax - xmin;
830 d = (float)((dx > dy ? dx : dy) * 1.1);
831 pxmin = (float)(xmin - (d - dx) / 2.0);
832 pxmax = (float)(xmax + (d - dx) / 2.0);
833 pymin = (float)(ymin - (d - dy) / 2.0);
834 pymax = (float)(ymax + (d - dy) / 2.0);
835 cradius = (float)((pxmax - pxmin) / 350.0);
836 range(pxmin, pymin, pxmax, pymax);
837}
838
839void LNLib::VoronoiDiagramGenerator::clip_line(struct Edge* e)
840{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected