public abstract class GeoBaseDistanceShape extends GeoBaseMembershipShape implements GeoDistanceShape
planetModel| Constructor and Description |
|---|
GeoBaseDistanceShape(PlanetModel planetModel)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
double |
computeDistance(DistanceStyle distanceStyle,
double x,
double y,
double z)
Compute this shape's internal "distance" to the GeoPoint.
|
double |
computeDistance(DistanceStyle distanceStyle,
GeoPoint point)
Compute this shape's internal "distance" to the GeoPoint.
|
protected abstract double |
distance(DistanceStyle distanceStyle,
double x,
double y,
double z)
Called by a
computeDistance method if X/Y/Z is not within this shape. |
protected abstract void |
distanceBounds(Bounds bounds,
DistanceStyle distanceStyle,
double distanceValue)
Called by a
getDistanceBounds method if distanceValue is not Double.POSITIVE_INFINITY. |
void |
getDistanceBounds(Bounds bounds,
DistanceStyle distanceStyle,
double distanceValue)
Compute a bound based on a provided distance measure.
|
boolean |
isWithin(Vector point)
Check if a point is within this shape.
|
computeOutsideDistance, computeOutsideDistance, outsideDistancegetBoundsequals, getPlanetModel, hashCodeclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetBounds, getEdgePoints, intersectscomputeOutsideDistance, computeOutsideDistanceisWithinpublic GeoBaseDistanceShape(PlanetModel planetModel)
planetModel - is the planet model to use.public boolean isWithin(Vector point)
MembershipisWithin in interface MembershipisWithin in class GeoBaseMembershipShapepoint - is the point to check.public double computeDistance(DistanceStyle distanceStyle, GeoPoint point)
GeoDistancecomputeDistance in interface GeoDistancedistanceStyle - is the distance style.point - is the point to compute the distance to.public double computeDistance(DistanceStyle distanceStyle, double x, double y, double z)
GeoDistancecomputeDistance in interface GeoDistancex - is the point's unit x coordinate (using U.S. convention).y - is the point's unit y coordinate (using U.S. convention).z - is the point's unit z coordinate (using U.S. convention).protected abstract double distance(DistanceStyle distanceStyle, double x, double y, double z)
computeDistance method if X/Y/Z is not within this shape.public void getDistanceBounds(Bounds bounds, DistanceStyle distanceStyle, double distanceValue)
GeoDistanceShapegetDistanceBounds in interface GeoDistanceShapebounds - is the bounds object to update.distanceStyle - describes the type of distance metric provided.distanceValue - is the distance metric to use. It is presumed that the distance metric
was produced with the same distance style as is provided to this method.protected abstract void distanceBounds(Bounds bounds, DistanceStyle distanceStyle, double distanceValue)
getDistanceBounds method if distanceValue is not Double.POSITIVE_INFINITY.Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.