Skip to content

Commit

Permalink
Merge 73f3e2b into cfe0502
Browse files Browse the repository at this point in the history
  • Loading branch information
darkma773r committed Feb 11, 2018
2 parents cfe0502 + 73f3e2b commit 491c68f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -689,9 +689,7 @@ public Cartesian2D[][] getVertices() {
if (j < (array.length - 1)) {
// current point
array[j++] = segment.getEnd();
}

if (j == (array.length - 1)) {
} else if (j == (array.length - 1)) {
// last dummy point
double x = segment.getLine().toSubSpace(segment.getStart()).getX();
x += FastMath.max(1.0, FastMath.abs(x / 2));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ public void testMixOfFiniteAndInfiniteBoundaries() {
checkPointsEqual(new Cartesian2D(0, 1), loop[1], tolerance);
checkPointsEqual(new Cartesian2D(0, 0), loop[2], tolerance);
checkPointsEqual(new Cartesian2D(1, 0), loop[3], tolerance);
checkPointsEqual(new Cartesian2D(1, 0), loop[4], tolerance);
checkPointsEqual(new Cartesian2D(1, 1), loop[4], tolerance);
}

@Test
Expand Down

0 comments on commit 491c68f

Please sign in to comment.