| 280 | } |
| 281 | |
| 282 | static double splineToSplineDistance(EdgeSegment *const *edgeSegments, int aStart, int aEnd, int bStart, int bEnd, int precision) { |
| 283 | double minDistance = DBL_MAX; |
| 284 | for (int ai = aStart; ai < aEnd; ++ai) |
| 285 | for (int bi = bStart; bi < bEnd && minDistance; ++bi) { |
| 286 | double d = edgeToEdgeDistance(*edgeSegments[ai], *edgeSegments[bi], precision); |
| 287 | minDistance = min(minDistance, d); |
| 288 | } |
| 289 | return minDistance; |
| 290 | } |
| 291 | |
| 292 | static void colorSecondDegreeGraph(int *coloring, const int *const *edgeMatrix, int vertexCount, unsigned long long seed) { |
| 293 | for (int i = 0; i < vertexCount; ++i) { |
no test coverage detected