@@ -10,11 +10,19 @@ typedef long long ll;
10
10
typedef pair<int , int > pii;
11
11
typedef vector<int > vi;
12
12
13
+ <<<<<<< HEAD:fuzz-tests/geometry/PolygonCut.cpp
13
14
#include " ../../content/geometry/PolygonArea.h"
14
15
#include " ../../content/geometry/PolygonCut.h"
15
16
#include " ../../content/geometry/sideOf.h"
16
17
#include " ../../content/geometry/insidePolygon.h"
17
18
#include " ../../content/geometry/SegmentIntersection.h"
19
+ =======
20
+ #include " ../content/geometry/PolygonArea.h"
21
+ #include " ../content/geometry/PolygonCut.h"
22
+ #include " ../content/geometry/sideOf.h"
23
+ #include " ../content/geometry/insidePolygon.h"
24
+ #include " ../content/geometry/SegmentIntersection.h"
25
+ >>>>>>> Fixed broken dependency:fuzz-tests/polygon-cut.cpp
18
26
19
27
typedef Point<double > P;
20
28
int main () {
@@ -27,9 +35,9 @@ int main() {
27
35
P a = ps[i], b = ps[(i+1 )%N];
28
36
P c = ps[j], d = ps[(j+1 )%N];
29
37
P r1, r2;
30
- int r = segmentIntersection (a, b, c, d, r1, r2 );
31
- if (r == 2 ) goto fail;
32
- if (r == 1 ) {
38
+ auto r = segInter (a, b, c, d);
39
+ if (sz (r) == 2 ) goto fail;
40
+ if (sz (r) == 1 ) {
33
41
if (i+1 == j || (j+1 ) % N == i) ;
34
42
else goto fail;
35
43
}
0 commit comments