Java com.google.common.geometry S2LatLngRect fields, constructors, methods, implement or subclass

Example usage for Java com.google.common.geometry S2LatLngRect fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.google.common.geometry S2LatLngRect.

The text is from its open source code.

Constructor

S2LatLngRect(final S2LatLng lo, final S2LatLng hi)
Construct a rectangle from minimum and maximum latitudes and longitudes.
S2LatLngRect(R1Interval lat, S1Interval lng)
Construct a rectangle from latitude and longitude intervals.

Method

booleancontains(S2LatLng ll)
More efficient version of Contains() that accepts a S2LatLng rather than an S2Point.
booleancontains(S2LatLngRect other)
Return true if and only if the rectangle contains the given other rectangle.
booleancontains(S2Cell cell)
booleancontains(S2Point p)
The point 'p' does not need to be normalized.
S2LatLngRectfromCenterSize(S2LatLng center, S2LatLng size)
Construct a rectangle from a center point (in lat-lng space) and size in each dimension.
S2LatLngRectfromPointPair(S2LatLng p1, S2LatLng p2)
Convenience method to construct the minimal bounding rectangle containing the two given points.
booleanintersects(S2LatLngRect other)
Return true if this rectangle and the given other rectangle have any points in common.
booleanintersects(S2Cell cell)
Returns true if this rectangle intersects the given cell.