public abstract class GeoBaseMembershipShape extends GeoBaseShape implements GeoMembershipShape
planetModel
Constructor and Description |
---|
GeoBaseMembershipShape(PlanetModel planetModel)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
double |
computeOutsideDistance(DistanceStyle distanceStyle,
double x,
double y,
double z)
Compute this shape's distance to the GeoPoint.
|
double |
computeOutsideDistance(DistanceStyle distanceStyle,
GeoPoint point)
Compute this shape's distance to the GeoPoint.
|
boolean |
isWithin(Vector point)
Check if a point is within this shape.
|
protected abstract double |
outsideDistance(DistanceStyle distanceStyle,
double x,
double y,
double z)
Called by a
computeOutsideDistance method if X/Y/Z is not within this shape. |
getBounds
equals, getPlanetModel, hashCode
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getBounds, getEdgePoints, intersects
isWithin
public GeoBaseMembershipShape(PlanetModel planetModel)
planetModel
- is the planet model to use.public boolean isWithin(Vector point)
Membership
isWithin
in interface Membership
point
- is the point to check.public double computeOutsideDistance(DistanceStyle distanceStyle, GeoPoint point)
GeoOutsideDistance
computeOutsideDistance
in interface GeoOutsideDistance
distanceStyle
- is the distance style.point
- is the point to compute the distance to.public double computeOutsideDistance(DistanceStyle distanceStyle, double x, double y, double z)
GeoOutsideDistance
computeOutsideDistance
in interface GeoOutsideDistance
distanceStyle
- is the distance style.x
- 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 outsideDistance(DistanceStyle distanceStyle, double x, double y, double z)
computeOutsideDistance
method if X/Y/Z is not within this shape.Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.