mirror of https://github.com/apache/lucene.git
LUCENE-7943: Disable an overly-aggressive assertion.
This commit is contained in:
parent
72818637f2
commit
200beab09e
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue