From 61d1e96b80240a9111bafcd40ae7b01c0e8fec77 Mon Sep 17 00:00:00 2001 From: Karl Wright Date: Wed, 27 Sep 2017 04:41:08 -0400 Subject: [PATCH] LUCENE-7970: Remove restriction on maximum cutoff angle, since it's really a radius. --- .../java/org/apache/lucene/spatial3d/geom/GeoExactCircle.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/GeoExactCircle.java b/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/GeoExactCircle.java index e64fd6ea27b..f6711b7d029 100644 --- a/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/GeoExactCircle.java +++ b/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/GeoExactCircle.java @@ -61,7 +61,7 @@ class GeoExactCircle extends GeoBaseCircle { throw new IllegalArgumentException("Latitude out of bounds"); if (lon < -Math.PI || lon > Math.PI) throw new IllegalArgumentException("Longitude out of bounds"); - if (cutoffAngle < 0.0 || cutoffAngle > Math.PI) + if (cutoffAngle < 0.0) throw new IllegalArgumentException("Cutoff angle out of bounds"); if (cutoffAngle < Vector.MINIMUM_RESOLUTION) throw new IllegalArgumentException("Cutoff angle cannot be effectively zero");