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 2018/04/13 03:34:29 UTC
lucene-solr:branch_7x: LUCENE-8245: Make precommit happy, again.
Repository: lucene-solr
Updated Branches:
refs/heads/branch_7x a27d866cd -> 539c7769b
LUCENE-8245: Make precommit happy, again.
Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/539c7769
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/539c7769
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/539c7769
Branch: refs/heads/branch_7x
Commit: 539c7769b2a6ebf605fcdc075d92af4a22979e11
Parents: a27d866
Author: Karl Wright <Da...@gmail.com>
Authored: Thu Apr 12 23:32:46 2018 -0400
Committer: Karl Wright <Da...@gmail.com>
Committed: Thu Apr 12 23:34:20 2018 -0400
----------------------------------------------------------------------
.../org/apache/lucene/spatial3d/geom/SidedPlane.java | 12 ++++++++++++
1 file changed, 12 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/539c7769/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/SidedPlane.java
----------------------------------------------------------------------
diff --git a/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/SidedPlane.java b/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/SidedPlane.java
index 238933c..61d561d 100755
--- a/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/SidedPlane.java
+++ b/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/SidedPlane.java
@@ -234,12 +234,24 @@ public class SidedPlane extends Plane implements Membership {
return sigNum == this.sigNum;
}
+ /**
+ * Check whether a point is strictly within a plane.
+ * @param v is the point.
+ * @return true if within.
+ */
public boolean strictlyWithin(final Vector v) {
double evalResult = evaluate(v.x, v.y, v.z);
double sigNum = Math.signum(evalResult);
return sigNum == 0.0 || sigNum == this.sigNum;
}
+ /**
+ * Check whether a point is strictly within a plane.
+ * @param x is the point x value.
+ * @param y is the point y value.
+ * @param z is the point z value.
+ * @return true if within.
+ */
public boolean strictlyWithin(double x, double y, double z) {
double evalResult = evaluate(x, y, z);
double sigNum = Math.signum(evalResult);