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 1bdf870 commit 2f32d63Copy full SHA for 2f32d63
content/geometry/SegmentIntersection.h
@@ -27,7 +27,7 @@ Products of three coordinates are used in intermediate steps so watch out for ov
27
template <class P>
28
bool segInterProper(P a, P b, P c, P d, P &out) {
29
double oa = c.cross(d, a), ob = c.cross(d, b),
30
- oc = a.cross(b, c), od = a.cross(b, d);
+ oc = a.cross(b, c), od = a.cross(b, d);
31
if (sgn(oa) * sgn(ob) < 0 && sgn(oc) * sgn(od) < 0) {
32
out = (a * ob - b * oa) / (ob - oa);
33
return true;
0 commit comments