Skip to content

Commit 318d7bc

Browse files
committed
Fixed broken dependency
1 parent 2db3b4d commit 318d7bc

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
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/polygon-cut.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ typedef pair<int, int> pii;
1111
typedef vector<int> vi;
1212

1313
#include "../content/geometry/PolygonArea.h"
14-
#include "../content/geometry/polygonCut.h"
14+
#include "../content/geometry/PolygonCut.h"
1515
#include "../content/geometry/sideOf.h"
1616
#include "../content/geometry/insidePolygon.h"
1717
#include "../content/geometry/SegmentIntersection.h"
@@ -27,9 +27,9 @@ int main() {
2727
P a = ps[i], b = ps[(i+1)%N];
2828
P c = ps[j], d = ps[(j+1)%N];
2929
P r1, r2;
30-
int r = segmentIntersection(a, b, c, d, r1, r2);
31-
if (r == 2) goto fail;
32-
if (r == 1) {
30+
auto r = segInter(a, b, c, d);
31+
if (sz(r) == 2) goto fail;
32+
if (sz(r) == 1) {
3333
if (i+1 == j || (j+1) % N == i) ;
3434
else goto fail;
3535
}

0 commit comments

Comments
 (0)