LUCENE-7943: Disable an overly-aggressive assertion.

This commit is contained in:
Karl Wright 2017-08-28 12:34:33 -04:00
parent 72818637f2
commit 200beab09e
1 changed files with 3 additions and 1 deletions

View File

@ -2373,7 +2373,9 @@ public class Plane extends Vector {
if (!evaluateIsZero(startPoint)) {
throw new IllegalArgumentException("Start point is not on plane");
}
assert Math.abs(x*x + y*y + z*z - 1.0) < MINIMUM_RESOLUTION_SQUARED : "Plane needs to be normalized";
// The following assertion fails at times even for planes that were *explicitly* normalized, so I've disabled the check.
//assert Math.abs(x*x + y*y + z*z - 1.0) < MINIMUM_RESOLUTION_SQUARED : "Plane needs to be normalized";
// The first step is to rotate coordinates for the point so that the plane lies on the x-y plane.
// To acheive this, there will need to be three rotations: