Interface GeoOutsideDistance

All Superinterfaces:
Membership
All Known Subinterfaces:
GeoAreaShape, GeoBBox, GeoCircle, GeoDistanceShape, GeoMembershipShape, GeoPath, GeoPointShape, GeoPolygon
All Known Implementing Classes:
GeoBaseAreaShape, GeoBaseBBox, GeoBaseCircle, GeoBaseCompositeAreaShape, GeoBaseCompositeMembershipShape, GeoBaseDistanceShape, GeoBaseMembershipShape, GeoBasePath, GeoBasePolygon, GeoComplexPolygon, GeoCompositeAreaShape, GeoCompositeMembershipShape, GeoCompositePolygon, GeoConcavePolygon, GeoConvexPolygon, GeoDegenerateHorizontalLine, GeoDegenerateLatitudeZone, GeoDegenerateLongitudeSlice, GeoDegeneratePath, GeoDegeneratePoint, GeoDegenerateVerticalLine, GeoExactCircle, GeoLatitudeZone, GeoLongitudeSlice, GeoNorthLatitudeZone, GeoNorthRectangle, GeoRectangle, GeoS2Shape, GeoSouthLatitudeZone, GeoSouthRectangle, GeoStandardCircle, GeoStandardPath, GeoWideDegenerateHorizontalLine, GeoWideLongitudeSlice, GeoWideNorthRectangle, GeoWideRectangle, GeoWideSouthRectangle, GeoWorld

public interface GeoOutsideDistance extends Membership
Implemented by Geo3D shapes that can compute the distance from a point to the closest outside edge.
  • Method Details

    • computeOutsideDistance

      default double computeOutsideDistance(DistanceStyle distanceStyle, GeoPoint point)
      Compute this shape's distance to the GeoPoint. A return value of 0.0 should be returned for points inside of the shape.
      Parameters:
      distanceStyle - is the distance style.
      point - is the point to compute the distance to.
      Returns:
      the distance.
    • computeOutsideDistance

      double computeOutsideDistance(DistanceStyle distanceStyle, double x, double y, double z)
      Compute this shape's distance to the GeoPoint. A return value of 0.0 should be returned for points inside of the shape.
      Parameters:
      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).
      Returns:
      the distance.