Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2f761be

Browse filesBrowse files
committed
update ccw(geom/line)
1 parent 8154253 commit 2f761be
Copy full SHA for 2f761be

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎geom/line.cpp

Copy file name to clipboardExpand all lines: geom/line.cpp
+1-1Lines changed: 1 addition & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.