You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by kw...@apache.org on 2017/09/27 08:44:08 UTC

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

Repository: lucene-solr
Updated Branches:
  refs/heads/branch_7x d39b2ddd2 -> 2894f23cd


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


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/2894f23c
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/2894f23c
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/2894f23c

Branch: refs/heads/branch_7x
Commit: 2894f23cdef6f4f257ec8678f949744eefb7769e
Parents: d39b2dd
Author: Karl Wright <Da...@gmail.com>
Authored: Wed Sep 27 04:41:08 2017 -0400
Committer: Karl Wright <Da...@gmail.com>
Committed: Wed Sep 27 04:44:01 2017 -0400

----------------------------------------------------------------------
 .../src/java/org/apache/lucene/spatial3d/geom/GeoExactCircle.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/2894f23c/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/GeoExactCircle.java
----------------------------------------------------------------------
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 e64fd6e..f6711b7 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");