We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8154253 commit 2f761beCopy full SHA for 2f761be
geom/line.cpp
@@ -13,7 +13,7 @@ struct Line {
13
if (dir().cross(p-s) > eps) return +1;
14
if (dir().cross(p-s) < -eps) return -1;
15
if (dir().dot(p-s) < -eps) return +2;
16
- if (dir().norm()+eps < (p-s).norm()) return -2;
+ if (dir().dot(t-p) < -eps) return -2;
17
return 0;
18
}
19
bool touch(const Line& l) const {
0 commit comments