LUCENE-7970: Remove restriction on maximum cutoff angle, since it's really a radius.

This commit is contained in:
Karl Wright 2017-09-27 04:41:08 -04:00
parent c05d34d6f9
commit 61d1e96b80
1 changed files with 1 additions and 1 deletions

View File

@ -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");