Skip to content

Commit bccd1cb

Browse files
committed
Fixed broken dependency
1 parent 0a0261b commit bccd1cb

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

content/geometry/SegmentIntersection.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ template<class P> vector<P> segInter(P a, P b, P c, P d) {
4343
if (onSegment(a, b, c)) s.insert(c);
4444
if (onSegment(a, b, d)) s.insert(d);
4545
return vector<P>(all(s));
46-
}
46+
}

fuzz-tests/geometry/PolygonCut.cpp

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,19 @@ typedef long long ll;
1010
typedef pair<int, int> pii;
1111
typedef vector<int> vi;
1212

13+
<<<<<<< HEAD:fuzz-tests/geometry/PolygonCut.cpp
1314
#include "../../content/geometry/PolygonArea.h"
1415
#include "../../content/geometry/PolygonCut.h"
1516
#include "../../content/geometry/sideOf.h"
1617
#include "../../content/geometry/insidePolygon.h"
1718
#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
1826

1927
typedef Point<double> P;
2028
int main() {
@@ -27,9 +35,9 @@ int main() {
2735
P a = ps[i], b = ps[(i+1)%N];
2836
P c = ps[j], d = ps[(j+1)%N];
2937
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) {
3341
if (i+1 == j || (j+1) % N == i) ;
3442
else goto fail;
3543
}

0 commit comments

Comments
 (0)