Example usage for Java com.google.common.geometry S2LatLngRect fields, constructors, methods, implement or subclass
The text is from its open source code.
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. |
boolean | contains(S2LatLng ll) More efficient version of Contains() that accepts a S2LatLng rather than an S2Point. |
boolean | contains(S2LatLngRect other) Return true if and only if the rectangle contains the given other rectangle. |
boolean | contains(S2Cell cell) |
boolean | contains(S2Point p) The point 'p' does not need to be normalized. |
S2LatLngRect | fromCenterSize(S2LatLng center, S2LatLng size) Construct a rectangle from a center point (in lat-lng space) and size in each dimension. |
S2LatLngRect | fromPointPair(S2LatLng p1, S2LatLng p2) Convenience method to construct the minimal bounding rectangle containing the two given points. |
boolean | intersects(S2LatLngRect other) Return true if this rectangle and the given other rectangle have any points in common. |
boolean | intersects(S2Cell cell) Returns true if this rectangle intersects the given cell. |