gis-tools-ts - v0.6.0
    Preparing search index...

    Function intersectsS2Cell

    • Return true if the cap intersects "cell", given that the cap does contain any of the cell vertices (supplied in "vertices", an array of length 4). Return true if this cap intersects any point of 'cell' excluding its vertices (which are assumed to already have been checked).

      Type Parameters

      • T

      Parameters

      • cap: S2Cap<T>

        the cap

      • cell: bigint

        the cell

      • vertices: Vertices

        the vertices of the cell

      Returns boolean

      • true if the cap intersects the cell