Uses of Class
com.google.common.geometry.R1Interval
-
Uses of R1Interval in com.google.common.geometry
Fields in com.google.common.geometry declared as R1IntervalModifier and TypeFieldDescriptionprotected final R1IntervalS2LatLngRectBase.latprivate final R1IntervalS2EdgeUtil.RectBounder.latABTemporary storage for the latitude range spanned by AB.private final R1IntervalR2Rect.xprivate final R1IntervalR2Rect.yMethods 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) AsapproxEquals(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.(package private) static booleanS2EdgeUtil.clipBoundAxis(double a0, double b0, R1Interval bound0, double a1, double b1, R1Interval bound1, boolean slopeNegative, R1Interval clip0) Given a line segment from (a0,a1) to (b0,b1) and a bounding interval for each axis, clip the segment further if necessary so that "bound0" does not extend outside the given interval "clip".private static voidS2ShapeIndex.clipVAxis(S2ShapeIndex.ClippedEdge edge, R1Interval middle, List<S2ShapeIndex.ClippedEdge> edges0, List<S2ShapeIndex.ClippedEdge> edges1, S2ShapeIndex.EdgeAllocator alloc) booleanR1Interval.contains(R1Interval y) Returns true if this interval contains the intervaly.private static S2PointS2LatLngRectBase.getBisectorIntersection(R1Interval lat, double lng) Return the intersection of longitude 0 with the bisector of an edge on longitude 'lng' and spanning latitude range 'lat'.doubleR1Interval.getDirectedHausdorffDistance(R1Interval y) Return the Hausdorff distance to the given intervaly.private static S1AngleS2LatLngRectBase.getDirectedHausdorffDistance(double lngDiff, R1Interval a, R1Interval b) Return the directed Hausdorff distance from one longitudinal edge spanning latitude rangea_latto the other longitudinal edge spanning latitude rangeb_lat, with their longitudinal difference given bylngDiff.private static S1AngleS2LatLngRectBase.getInteriorMaxDistance(R1Interval aLat, S2Point b) Return max distance from a point b to the segment spanning latitude range aLat on longitude 0, if the max occurs in the interior of aLat.abstract doubleR1Interval.Endpoint.getValue(R1Interval interval) 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.(package private) voidR1Interval.intersectionInternal(R1Interval y) Sets this interval to the intersection of the current interval andy.booleanR1Interval.intersects(R1Interval y) Returns true if this interval intersectsy, i.e.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.private static voidS2CellId.setAxisRange(int ij, int cellSize, R1Interval interval) abstract voidR1Interval.Endpoint.setValue(R1Interval interval, double value) R1Interval.union(R1Interval y) Returns the smallest interval that contains this interval andy.(package private) voidR1Interval.unionInternal(R1Interval y) Sets this interval to the union of this interval andy.(package private) static booleanS2EdgeUtil.updateEndpoint(R1Interval bound, boolean slopeNegative, double value) Moves an endpoint of the given bound to the given value.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.(package private)S2LatLngRectBase(R1Interval lat, S1Interval lng) Constructs a rectangle from latitude and longitude intervals.