Uses of Class
com.google.common.geometry.S1Interval
-
-
Uses of S1Interval in com.google.common.geometry
Fields in com.google.common.geometry declared as S1Interval Modifier and Type Field Description private S1Interval
S2EdgeUtil.LongitudePruner. interval
protected S1Interval
S2LatLngRectBase. lng
private S1Interval
S2EdgeUtil.RectBounder. lngAB
Temporary storage for the longitude range spanned by AB.Methods in com.google.common.geometry that return S1Interval Modifier and Type Method Description S1Interval
S1Interval. addPoint(double p)
Expands the interval by the minimum amount necessary so that it contains the pointp
(an angle in the range [-Pi, Pi]).S1Interval
S1Interval. complement()
Return the complement of the interior of the interval.static S1Interval
S1Interval. empty()
S1Interval
S1Interval. expanded(double margin)
Returns a new interval that has been expanded on each side by the distancemargin
.static S1Interval
S1Interval. fromPoint(double radians)
Convenience method to construct an interval containing a single point.static S1Interval
S1Interval. fromPointPair(double p1, double p2)
Convenience method to construct the minimal interval containing the two given points.static S1Interval
S1Interval. full()
static S1Interval
S2LatLngRect. fullLng()
The full allowable range of longitudes.S1Interval
S1Interval. intersection(S1Interval y)
Returns the smallest interval that contains the intersection of this interval withy
.S1Interval
S2LatLngRect.Builder. lng()
S1Interval
S2LatLngRect. lng()
abstract S1Interval
S2LatLngRectBase. lng()
Returns the longitude range of this rectangle.S1Interval
S1Interval. union(S1Interval y)
Returns the smallest interval that contains this interval and the intervaly
.Methods in com.google.common.geometry with parameters of type S1Interval Modifier and Type Method Description boolean
S1Interval. approxEquals(S1Interval y)
AsapproxEquals(S1Interval, double)
, with a default maxError of 1e-15.boolean
S1Interval. approxEquals(S1Interval y, double maxError)
Returns true if this interval can be transformed into the intervaly
by moving each endpoint by at most "maxError" (and without the endpoints crossing, which would invert the interval).boolean
S1Interval. contains(S1Interval y)
Returns true if the interval contains the intervaly
.double
S1Interval. getDirectedHausdorffDistance(S1Interval y)
Return the Hausdorff distance to the given intervaly
.boolean
S1Interval. interiorContains(S1Interval y)
Returns true if the interior of this interval contains the entire interval 'y'.boolean
S1Interval. interiorIntersects(S1Interval y)
Returns true if the interior of this interval contains any point of the intervaly
(including its boundary).S1Interval
S1Interval. intersection(S1Interval y)
Returns the smallest interval that contains the intersection of this interval withy
.(package private) void
S1Interval. intersectionInternal(S1Interval y)
Sets this interval to the intersection of the current interval andy
.boolean
S1Interval. intersects(S1Interval y)
Returns true if the two intervals contain any points in common.static boolean
S2LatLngRectBase. intersectsLatEdge(S2Point a, S2Point b, double lat, S1Interval lng)
Returns true if the edge AB intersects the given edge of constant latitude.S1Interval
S1Interval. union(S1Interval y)
Returns the smallest interval that contains this interval and the intervaly
.(package private) void
S1Interval. unionInternal(S1Interval y)
Sets this interval to the union of the current interval andy
.Constructors in com.google.common.geometry with parameters of type S1Interval Constructor Description Builder(R1Interval lat, S1Interval lng)
LongitudePruner(S1Interval interval, S2Point v0)
'interval' is the longitude interval to be tested against, and 'v0' is the first vertex of edge chain.S1Interval(S1Interval interval)
Copy constructor.S2LatLngRect(R1Interval lat, S1Interval lng)
Constructs a rectangle from latitude and longitude intervals.S2LatLngRectBase(R1Interval lat, S1Interval lng)
Constructs a rectangle from latitude and longitude intervals.
-