S2CellUnion.contains

Returns true if the cell union contains the given cell id. Containment is defined with respect to regions, e.g. a cell contains its 4 children. This is a fast operation (logarithmic in the size of the cell union).

CAVEAT: If you have constructed a non-normalized S2CellUnion using FromVerbatim, note that groups of 4 child cells are *not* considered to contain their parent cell. To get this behavior you must use one of the other constructors or call Normalize() explicitly.

  1. bool contains(S2CellId id)
    class S2CellUnion
    const
    bool
    contains
  2. bool contains(S2CellUnion y)
  3. bool contains(S2Cell cell)
  4. bool contains(S2Point p)

Meta