public class Geo3dDistanceCalculator extends Object implements org.locationtech.spatial4j.distance.DistanceCalculator
DistanceCalculator
Modifier and Type | Field and Description |
---|---|
protected PlanetModel |
planetModel |
Constructor and Description |
---|
Geo3dDistanceCalculator(PlanetModel planetModel) |
Modifier and Type | Method and Description |
---|---|
double |
area(org.locationtech.spatial4j.shape.Circle circle) |
double |
area(org.locationtech.spatial4j.shape.Rectangle rect) |
double |
calcBoxByDistFromPt_yHorizAxisDEG(org.locationtech.spatial4j.shape.Point from,
double distDEG,
org.locationtech.spatial4j.context.SpatialContext ctx) |
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 |
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) |
protected final PlanetModel planetModel
public Geo3dDistanceCalculator(PlanetModel planetModel)
public double distance(org.locationtech.spatial4j.shape.Point from, org.locationtech.spatial4j.shape.Point to)
distance
in interface org.locationtech.spatial4j.distance.DistanceCalculator
public double distance(org.locationtech.spatial4j.shape.Point from, double toX, double toY)
distance
in interface org.locationtech.spatial4j.distance.DistanceCalculator
public boolean within(org.locationtech.spatial4j.shape.Point from, double toX, double toY, double distance)
within
in interface org.locationtech.spatial4j.distance.DistanceCalculator
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)
pointOnBearing
in interface org.locationtech.spatial4j.distance.DistanceCalculator
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)
calcBoxByDistFromPt
in interface org.locationtech.spatial4j.distance.DistanceCalculator
public double calcBoxByDistFromPt_yHorizAxisDEG(org.locationtech.spatial4j.shape.Point from, double distDEG, org.locationtech.spatial4j.context.SpatialContext ctx)
calcBoxByDistFromPt_yHorizAxisDEG
in interface org.locationtech.spatial4j.distance.DistanceCalculator
public double area(org.locationtech.spatial4j.shape.Rectangle rect)
area
in interface org.locationtech.spatial4j.distance.DistanceCalculator
public double area(org.locationtech.spatial4j.shape.Circle circle)
area
in interface org.locationtech.spatial4j.distance.DistanceCalculator
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.