Skip to content

Commit 2f761be

Browse files
committed
update ccw(geom/line)
1 parent 8154253 commit 2f761be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

geom/line.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ struct Line {
1313
if (dir().cross(p-s) > eps) return +1;
1414
if (dir().cross(p-s) < -eps) return -1;
1515
if (dir().dot(p-s) < -eps) return +2;
16-
if (dir().norm()+eps < (p-s).norm()) return -2;
16+
if (dir().dot(t-p) < -eps) return -2;
1717
return 0;
1818
}
1919
bool touch(const Line& l) const {

0 commit comments

Comments
 (0)