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 R1Interval
S2LatLngRectBase.lat
private final R1Interval
S2EdgeUtil.RectBounder.latAB
Temporary storage for the latitude range spanned by AB.private final R1Interval
R2Rect.x
private final R1Interval
R2Rect.y
Methods 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 R1Interval
R1Interval.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 R1Interval
R1Interval.fromPoint
(double p) Convenience method to construct an interval containing a single point.static R1Interval
R1Interval.fromPointPair
(double p1, double p2) Convenience method to construct the minimal interval containing the two given points.static R1Interval
S2LatLngRect.fullLat()
The full allowable range of latitudes.abstract R1Interval
R2Rect.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 R1Interval
S2LatLngRect.Builder.lat()
final R1Interval
S2LatLngRect.lat()
abstract R1Interval
S2LatLngRectBase.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 TypeMethodDescriptionboolean
R1Interval.approxEquals
(R1Interval y) AsapproxEquals(R1Interval, double)
, with a default value for maxError just larger than typical rounding errors in computing intervals.boolean
R1Interval.approxEquals
(R1Interval y, double maxError) Returns true if this interval can be transformed intoy
by moving each endpoint by at mostmaxError
.(package private) static boolean
S2EdgeUtil.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 void
S2ShapeIndex.clipVAxis
(S2ShapeIndex.ClippedEdge edge, R1Interval middle, List<S2ShapeIndex.ClippedEdge> edges0, List<S2ShapeIndex.ClippedEdge> edges1, S2ShapeIndex.EdgeAllocator alloc) boolean
R1Interval.contains
(R1Interval y) Returns true if this interval contains the intervaly
.private static S2Point
S2LatLngRectBase.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'.double
R1Interval.getDirectedHausdorffDistance
(R1Interval y) Return the Hausdorff distance to the given intervaly
.private static S1Angle
S2LatLngRectBase.getDirectedHausdorffDistance
(double lngDiff, R1Interval a, R1Interval b) Return the directed Hausdorff distance from one longitudinal edge spanning latitude rangea_lat
to the other longitudinal edge spanning latitude rangeb_lat
, with their longitudinal difference given bylngDiff
.private static S1Angle
S2LatLngRectBase.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 double
R1Interval.Endpoint.getValue
(R1Interval interval) boolean
R1Interval.interiorContains
(R1Interval y) Returns true if the interior of this interval contains the entire intervaly
(including its boundary).boolean
R1Interval.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) void
R1Interval.intersectionInternal
(R1Interval y) Sets this interval to the intersection of the current interval andy
.boolean
R1Interval.intersects
(R1Interval y) Returns true if this interval intersectsy
, i.e.static final boolean
S2LatLngRectBase.intersectsLngEdge
(S2Point a, S2Point b, R1Interval lat, double lng) Returns true if the edge AB intersects the given edge of constant longitude.private static void
S2CellId.setAxisRange
(int ij, int cellSize, R1Interval interval) abstract void
R1Interval.Endpoint.setValue
(R1Interval interval, double value) R1Interval.union
(R1Interval y) Returns the smallest interval that contains this interval andy
.(package private) void
R1Interval.unionInternal
(R1Interval y) Sets this interval to the union of this interval andy
.(package private) static boolean
S2EdgeUtil.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.