Class GeoBaseCompositeMembershipShape<T extends GeoMembershipShape>

Type Parameters:
T - is the type of GeoMembershipShapes of the composite.
All Implemented Interfaces:
Bounded, GeoMembershipShape, GeoOutsideDistance, GeoShape, Membership, PlanetObject, SerializableObject
Direct Known Subclasses:
GeoBaseCompositeAreaShape, GeoCompositeMembershipShape

abstract class GeoBaseCompositeMembershipShape<T extends GeoMembershipShape> extends GeoBaseCompositeShape<T> implements GeoMembershipShape
Base class to create a composite of GeoMembershipShapes
  • Constructor Details

    • GeoBaseCompositeMembershipShape

      GeoBaseCompositeMembershipShape(PlanetModel planetModel)
      Constructor.
    • GeoBaseCompositeMembershipShape

      GeoBaseCompositeMembershipShape(PlanetModel planetModel, InputStream inputStream, Class<T> clazz) throws IOException
      Constructor for deserialization.
      Parameters:
      planetModel - is the planet model.
      inputStream - is the input stream.
      clazz - is the class of the generic.
      Throws:
      IOException
  • Method Details

    • computeOutsideDistance

      public double computeOutsideDistance(DistanceStyle distanceStyle, GeoPoint point)
      Description copied from interface: GeoOutsideDistance
      Compute this shape's distance to the GeoPoint. A return value of 0.0 should be returned for points inside of the shape.
      Specified by:
      computeOutsideDistance in interface GeoOutsideDistance
      Parameters:
      distanceStyle - is the distance style.
      point - is the point to compute the distance to.
      Returns:
      the distance.
    • computeOutsideDistance

      public double computeOutsideDistance(DistanceStyle distanceStyle, double x, double y, double z)
      Description copied from interface: GeoOutsideDistance
      Compute this shape's distance to the GeoPoint. A return value of 0.0 should be returned for points inside of the shape.
      Specified by:
      computeOutsideDistance in interface GeoOutsideDistance
      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.