| 25 | } |
| 26 | |
| 27 | static double estimateEdgeLength(const EdgeSegment *edge) { |
| 28 | double len = 0; |
| 29 | Point2 prev = edge->point(0); |
| 30 | for (int i = 1; i <= MSDFGEN_EDGE_LENGTH_PRECISION; ++i) { |
| 31 | Point2 cur = edge->point(1./MSDFGEN_EDGE_LENGTH_PRECISION*i); |
| 32 | len += (cur-prev).length(); |
| 33 | prev = cur; |
| 34 | } |
| 35 | return len; |
| 36 | } |
| 37 | |
| 38 | static int seedExtract2(unsigned long long &seed) { |
| 39 | int v = int(seed)&1; |
no test coverage detected