Example usage for com.google.common.geometry S2LatLngRect intersects

List of usage examples for com.google.common.geometry S2LatLngRect intersects

Introduction

In this page you can find the example usage for com.google.common.geometry S2LatLngRect intersects.

Prototype

public boolean intersects(S2Cell cell) 

Source Link

Document

Returns true if this rectangle intersects the given cell.

Usage

From source file:com.amazonaws.geo.s2.internal.S2Manager.java

private static boolean containsGeodataToFind(S2CellId c, S2LatLngRect latLngRect) {
    if (latLngRect != null) {
        return latLngRect.intersects(new S2Cell(c));
    }/* w w w .j  a va 2 s  . c  o  m*/

    return false;
}