public abstract class AbstractDistanceCalculator extends Object implements DistanceCalculator
Constructor and Description |
---|
AbstractDistanceCalculator() |
Modifier and Type | Method and Description |
---|---|
double |
distance(Point from,
Point to)
The distance between
from and to . |
String |
toString() |
boolean |
within(Point from,
double toX,
double toY,
double distance)
Returns true if the distance between from and to is <= distance.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
area, area, calcBoxByDistFromPt_yHorizAxisDEG, calcBoxByDistFromPt, distance, pointOnBearing
public double distance(Point from, Point to)
DistanceCalculator
from
and to
.distance
in interface DistanceCalculator
public boolean within(Point from, double toX, double toY, double distance)
DistanceCalculator
within
in interface DistanceCalculator
Copyright © 2020 LocationTech. All rights reserved.