Class GeoStandardPath.BaseSegmentEndpoint

    • Field Detail

      • point

        protected final GeoPoint point
        The center point of the endpoint
      • NO_MEMBERSHIP

        protected static final Membership[] NO_MEMBERSHIP
        Null membership
    • Constructor Detail

      • BaseSegmentEndpoint

        public BaseSegmentEndpoint​(GeoPoint point)
    • Method Detail

      • pathDistance

        public double pathDistance​(DistanceStyle distanceStyle,
                                   double x,
                                   double y,
                                   double z)
        Description copied from interface: GeoStandardPath.SegmentEndpoint
        Compute interior path distance.
        Specified by:
        pathDistance in interface GeoStandardPath.SegmentEndpoint
        Parameters:
        distanceStyle - is the distance style.
        x - is the point x.
        y - is the point y.
        z - is the point z.
        Returns:
        the distance metric, in aggregation form.
      • nearestPathDistance

        public double nearestPathDistance​(DistanceStyle distanceStyle,
                                          double x,
                                          double y,
                                          double z)
        Description copied from interface: GeoStandardPath.SegmentEndpoint
        Compute nearest path distance.
        Specified by:
        nearestPathDistance in interface GeoStandardPath.SegmentEndpoint
        Parameters:
        distanceStyle - is the distance style.
        x - is the point x.
        y - is the point y.
        z - is the point z.
        Returns:
        the distance metric (always value zero), in aggregation form, or POSITIVE_INFINITY if the point is not within the bounds of the endpoint.
      • pathCenterDistance

        public double pathCenterDistance​(DistanceStyle distanceStyle,
                                         double x,
                                         double y,
                                         double z)
        Description copied from interface: GeoStandardPath.SegmentEndpoint
        Compute path center distance.
        Specified by:
        pathCenterDistance in interface GeoStandardPath.SegmentEndpoint
        Parameters:
        distanceStyle - is the distance style.
        x - is the point x.
        y - is the point y.
        z - is the point z.
        Returns:
        the distance metric, or POSITIVE_INFINITY if the point is not within the bounds of the endpoint.
      • intersects

        public boolean intersects​(PlanetModel planetModel,
                                  Plane p,
                                  GeoPoint[] notablePoints,
                                  Membership[] bounds)
        Description copied from interface: GeoStandardPath.SegmentEndpoint
        Determine if this endpoint intersects a specified plane.
        Specified by:
        intersects in interface GeoStandardPath.SegmentEndpoint
        Parameters:
        planetModel - is the planet model.
        p - is the plane.
        notablePoints - are the points associated with the plane.
        bounds - are any bounds which the intersection must lie within.
        Returns:
        true if there is a matching intersection.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object