Class Geo3dDistanceCalculator

  • All Implemented Interfaces:
    org.locationtech.spatial4j.distance.DistanceCalculator

    public class Geo3dDistanceCalculator
    extends Object
    implements org.locationtech.spatial4j.distance.DistanceCalculator
    Geo3d implementation of DistanceCalculator
    WARNING: This API is experimental and might change in incompatible ways in the next release.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double area​(org.locationtech.spatial4j.shape.Circle circle)  
      double area​(org.locationtech.spatial4j.shape.Rectangle rect)  
      org.locationtech.spatial4j.shape.Rectangle calcBoxByDistFromPt​(org.locationtech.spatial4j.shape.Point from, double distDEG, org.locationtech.spatial4j.context.SpatialContext ctx, org.locationtech.spatial4j.shape.Rectangle reuse)  
      double calcBoxByDistFromPt_yHorizAxisDEG​(org.locationtech.spatial4j.shape.Point from, double distDEG, org.locationtech.spatial4j.context.SpatialContext ctx)  
      double distance​(org.locationtech.spatial4j.shape.Point from, double toX, double toY)  
      double distance​(org.locationtech.spatial4j.shape.Point from, org.locationtech.spatial4j.shape.Point to)  
      org.locationtech.spatial4j.shape.Point pointOnBearing​(org.locationtech.spatial4j.shape.Point from, double distDEG, double bearingDEG, org.locationtech.spatial4j.context.SpatialContext ctx, org.locationtech.spatial4j.shape.Point reuse)  
      boolean within​(org.locationtech.spatial4j.shape.Point from, double toX, double toY, double distance)  
    • Field Detail

    • Constructor Detail

      • Geo3dDistanceCalculator

        public Geo3dDistanceCalculator​(PlanetModel planetModel)
    • Method Detail

      • distance

        public double distance​(org.locationtech.spatial4j.shape.Point from,
                               org.locationtech.spatial4j.shape.Point to)
        Specified by:
        distance in interface org.locationtech.spatial4j.distance.DistanceCalculator
      • distance

        public double distance​(org.locationtech.spatial4j.shape.Point from,
                               double toX,
                               double toY)
        Specified by:
        distance in interface org.locationtech.spatial4j.distance.DistanceCalculator
      • within

        public boolean within​(org.locationtech.spatial4j.shape.Point from,
                              double toX,
                              double toY,
                              double distance)
        Specified by:
        within in interface org.locationtech.spatial4j.distance.DistanceCalculator
      • pointOnBearing

        public org.locationtech.spatial4j.shape.Point pointOnBearing​(org.locationtech.spatial4j.shape.Point from,
                                                                     double distDEG,
                                                                     double bearingDEG,
                                                                     org.locationtech.spatial4j.context.SpatialContext ctx,
                                                                     org.locationtech.spatial4j.shape.Point reuse)
        Specified by:
        pointOnBearing in interface org.locationtech.spatial4j.distance.DistanceCalculator
      • calcBoxByDistFromPt

        public org.locationtech.spatial4j.shape.Rectangle calcBoxByDistFromPt​(org.locationtech.spatial4j.shape.Point from,
                                                                              double distDEG,
                                                                              org.locationtech.spatial4j.context.SpatialContext ctx,
                                                                              org.locationtech.spatial4j.shape.Rectangle reuse)
        Specified by:
        calcBoxByDistFromPt in interface org.locationtech.spatial4j.distance.DistanceCalculator
      • calcBoxByDistFromPt_yHorizAxisDEG

        public double calcBoxByDistFromPt_yHorizAxisDEG​(org.locationtech.spatial4j.shape.Point from,
                                                        double distDEG,
                                                        org.locationtech.spatial4j.context.SpatialContext ctx)
        Specified by:
        calcBoxByDistFromPt_yHorizAxisDEG in interface org.locationtech.spatial4j.distance.DistanceCalculator
      • area

        public double area​(org.locationtech.spatial4j.shape.Rectangle rect)
        Specified by:
        area in interface org.locationtech.spatial4j.distance.DistanceCalculator
      • area

        public double area​(org.locationtech.spatial4j.shape.Circle circle)
        Specified by:
        area in interface org.locationtech.spatial4j.distance.DistanceCalculator