| 779 | } |
| 780 | |
| 781 | void LNLib::VoronoiDiagramGenerator::pushDelaunayGraphEdge(float x1, float y1, float x2, float y2) |
| 782 | { |
| 783 | if (std::sqrt(((x2 - x1) * (x2 - x1)) + ((y2 - y1) * (y2 - y1))) < minDistanceBetweenSites) |
| 784 | { |
| 785 | return; |
| 786 | } |
| 787 | GraphEdge* newEdge = new GraphEdge; |
| 788 | newEdge->next = delaunayEdges; |
| 789 | delaunayEdges = newEdge; |
| 790 | newEdge->x1 = x1; |
| 791 | newEdge->y1 = y1; |
| 792 | newEdge->x2 = x2; |
| 793 | newEdge->y2 = y2; |
| 794 | } |
| 795 | |
| 796 | char* LNLib::VoronoiDiagramGenerator::myalloc(unsigned n) |
| 797 | { |
nothing calls this directly
no outgoing calls
no test coverage detected