Uses of Class
com.google.common.geometry.R1Interval
-
Uses of R1Interval in com.google.common.geometry
Fields in com.google.common.geometry declared as R1IntervalMethods in com.google.common.geometry that return R1IntervalModifier and TypeMethodDescriptionR1Interval.addPoint(double p) Returns the smallest interval that contains this interval and the pointp.static R1IntervalR1Interval.empty()Returns an empty interval.R1Interval.expanded(double radius) Return an interval that contains all points with a distance "radius" of a point in this interval.static R1IntervalR1Interval.fromPoint(double p) Convenience method to construct an interval containing a single point.static R1IntervalR1Interval.fromPointPair(double p1, double p2) Convenience method to construct the minimal interval containing the two given points.static R1IntervalS2LatLngRect.fullLat()The full allowable range of latitudes.abstract R1IntervalR2Rect.Axis.getInterval(R2Rect rect) R2Rect.getInterval(R2Rect.Axis axis) Returns the interval for the given axis, which must not be null.R1Interval.intersection(R1Interval y) Returns the intersection of this interval withy.final R1IntervalS2LatLngRect.Builder.lat()final R1IntervalS2LatLngRect.lat()abstract R1IntervalS2LatLngRectBase.lat()Returns the latitude range of this rectangle.R1Interval.union(R1Interval y) Returns the smallest interval that contains this interval andy.R2Rect.x()Returns the interval along the x-axis.R2Rect.y()Returns the interval along the y-axis.Methods in com.google.common.geometry with parameters of type R1IntervalModifier and TypeMethodDescriptionbooleanR1Interval.approxEquals(R1Interval y) AsR1Interval.approxEquals(R1Interval, double), with a default value for maxError just larger than typical rounding errors in computing intervals.booleanR1Interval.approxEquals(R1Interval y, double maxError) Returns true if this interval can be transformed intoyby moving each endpoint by at mostmaxError.booleanR1Interval.contains(R1Interval y) Returns true if this interval contains the intervaly.doubleR1Interval.getDirectedHausdorffDistance(R1Interval y) Return the Hausdorff distance to the given intervaly.booleanR1Interval.interiorContains(R1Interval y) Returns true if the interior of this interval contains the entire intervaly(including its boundary).booleanR1Interval.interiorIntersects(R1Interval y) Returns true if the interior of this interval intersects any point ofy(including its boundary).R1Interval.intersection(R1Interval y) Returns the intersection of this interval withy.booleanR1Interval.intersects(R1Interval y) Returns true if this interval intersectsy, i.e. if they have any points in common.static final booleanS2LatLngRectBase.intersectsLngEdge(S2Point a, S2Point b, R1Interval lat, double lng) Returns true if the edge AB intersects the given edge of constant longitude.R1Interval.union(R1Interval y) Returns the smallest interval that contains this interval andy.Constructors in com.google.common.geometry with parameters of type R1IntervalModifierConstructorDescriptionBuilder(R1Interval lat, S1Interval lng) R1Interval(R1Interval interval) Copy constructor.R2Rect(R1Interval x, R1Interval y) Constructs a rectangle from the given intervals in x and y.S2LatLngRect(R1Interval lat, S1Interval lng) Constructs a rectangle from latitude and longitude intervals.