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 d2e700a commit 59f8511Copy full SHA for 59f8511
content/geometry/onSegment.h
@@ -11,6 +11,5 @@
11
#include "Point.h"
12
13
template <class P> bool onSegment(P s, P e, P p) {
14
- return s.cross(e, p) == 0 &&
15
- (s - p).dot(e - p) <= 0;
+ return s.cross(e, p) == 0 && (s - p).dot(e - p) <= 0;
16
}
0 commit comments