From ed73c356c7a7987c78b8f6ee6dd7ec1e5f9b3e67 Mon Sep 17 00:00:00 2001
From: Luc Maisonobe extends Serializable {
*/
boolean isNaN();
+ /** Compute the distance between the instance and another point.
+ * @param p second point
+ * @return the distance between the instance and p
+ */
+ double distance(Point p);
+
}
diff --git a/src/main/java/org/apache/commons/math3/geometry/Vector.java b/src/main/java/org/apache/commons/math3/geometry/Vector.java
index 8ab965f5e..20fb6b95b 100644
--- a/src/main/java/org/apache/commons/math3/geometry/Vector.java
+++ b/src/main/java/org/apache/commons/math3/geometry/Vector.java
@@ -120,7 +120,9 @@ public interface Vector extends Point {
* vector is built
If the boundary is empty, the region will represent the whole * space.
@@ -137,7 +138,7 @@ public class IntervalsSet extends AbstractRegionThe offset is 0 if the point is on the underlying hyperplane,
* it is positive if the point is on one particular side of the
diff --git a/src/main/java/org/apache/commons/math3/geometry/euclidean/threed/PolyhedronsSet.java b/src/main/java/org/apache/commons/math3/geometry/euclidean/threed/PolyhedronsSet.java
index 3a19048f3..f43c15604 100644
--- a/src/main/java/org/apache/commons/math3/geometry/euclidean/threed/PolyhedronsSet.java
+++ b/src/main/java/org/apache/commons/math3/geometry/euclidean/threed/PolyhedronsSet.java
@@ -72,7 +72,7 @@ public class PolyhedronsSet extends AbstractRegion
If the boundary is empty, the region will represent the whole * space.
@@ -138,11 +138,11 @@ public class PolyhedronsSet extends AbstractRegionIf the returned cell is a leaf node the points belongs to the + * interior of the node, if the cell is an internal node the points + * belongs to the node cut sub-hyperplane.
+ * @param point point to check + * @return the tree cell to which the point belongs */ public BSPTreeIf the boundary is empty, the region will represent the whole * space.
diff --git a/src/main/java/org/apache/commons/math3/geometry/spherical/oned/S1Point.java b/src/main/java/org/apache/commons/math3/geometry/spherical/oned/S1Point.java index 077476d6e..e7184d93d 100644 --- a/src/main/java/org/apache/commons/math3/geometry/spherical/oned/S1Point.java +++ b/src/main/java/org/apache/commons/math3/geometry/spherical/oned/S1Point.java @@ -86,6 +86,11 @@ public class S1Point implements PointThis constructor does not handle polygons with a boundary * forming several disconnected paths (such as polygons with holes).
*For cases where this simple constructor applies, it is expected to - * be numerically more robust than the {@link #PolygonsSet(Collection) general - * constructor} using {@link SubHyperplane subhyperplanes}.
+ * be numerically more robust than the {@link #SphericalPolygonsSet(Collection, + * double) general constructor} using {@link SubHyperplane subhyperplanes}. *If the list is empty, the region will represent the whole * space.
*
@@ -804,10 +804,9 @@ public class SphericalPolygonsSet extends AbstractRegion