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:43:20 UTC

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

Repository: lucene-solr
Updated Branches:
  refs/heads/branch_6x adf4dbdad -> 588c60fa7


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/588c60fa
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/588c60fa
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/588c60fa

Branch: refs/heads/branch_6x
Commit: 588c60fa7f32a697a7c05c7b92d3ba139f7bbdf5
Parents: adf4dbd
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:43:12 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/588c60fa/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");