Class Distance

java.lang.Object
org.apache.sedona.common.S2Geography.Distance

public class Distance extends Object
  • Constructor Details

    • Distance

      public Distance()
  • Method Details

    • S2_distance

      public double S2_distance(ShapeIndexGeography geo1, ShapeIndexGeography geo2)
    • S2_maxDistance

      public double S2_maxDistance(ShapeIndexGeography geo1, ShapeIndexGeography geo2)
    • 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