LUCENE-8632: Fix EdgeTree.internalComponentRelateTriangle to pass correct line segment vertices

This commit is contained in:
Nicholas Knize 2019-07-09 13:49:54 -05:00
parent 437090c302
commit 14b67012d0
1 changed files with 2 additions and 0 deletions

View File

@ -142,6 +142,8 @@ public abstract class EdgeTree {
return Relation.CELL_OUTSIDE_QUERY;
} else if (bx == cx && by == cy) {
return componentRelateTriangle(bx, by, ax, ay, cx, cy);
} else if (ax == bx && ay == by) {
return componentRelateTriangle(bx, by, cx, cy, ax, ay);
}
return componentRelateTriangle(ax, ay, bx, by, cx, cy);
}