Class Distance
java.lang.Object
org.apache.sedona.common.S2Geography.Distance
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.commons.lang3.tuple.Pair<com.google.common.geometry.S2Point,com.google.common.geometry.S2Point> getEdgePairClosestPoints(com.google.common.geometry.S2Point a0, com.google.common.geometry.S2Point a1, com.google.common.geometry.S2Point b0, com.google.common.geometry.S2Point b1) The Java equivalent of:com.google.common.geometry.S2PointS2_closestPoint(ShapeIndexGeography geo1, ShapeIndexGeography geo2) doubleS2_distance(ShapeIndexGeography geo1, ShapeIndexGeography geo2) doubleS2_maxDistance(ShapeIndexGeography geo1, ShapeIndexGeography geo2) org.apache.commons.lang3.tuple.Pair<com.google.common.geometry.S2Point,com.google.common.geometry.S2Point>
-
Constructor Details
-
Distance
public Distance()
-
-
Method Details
-
S2_distance
-
S2_maxDistance
-
S2_closestPoint
public com.google.common.geometry.S2Point S2_closestPoint(ShapeIndexGeography geo1, ShapeIndexGeography geo2) throws Exception - Throws:
Exception
-
S2_minimumClearanceLineBetween
public org.apache.commons.lang3.tuple.Pair<com.google.common.geometry.S2Point,com.google.common.geometry.S2Point> S2_minimumClearanceLineBetween(ShapeIndexGeography geo1, ShapeIndexGeography geo2) throws Exception - Throws:
Exception
-
getEdgePairClosestPoints
public static org.apache.commons.lang3.tuple.Pair<com.google.common.geometry.S2Point,com.google.common.geometry.S2Point> getEdgePairClosestPoints(com.google.common.geometry.S2Point a0, com.google.common.geometry.S2Point a1, com.google.common.geometry.S2Point b0, com.google.common.geometry.S2Point b1) The Java equivalent of:std::pair<S2Point,S2Point> GetEdgePairClosestPoints(a0,a1,b0,b1) # returns the shortest possible line between x and y
-