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

    Function capFromS2Point

    • Convenience function that creates a cap containing a single point. This method is more efficient that the S2Cap(center, radius) constructor.

      Type Parameters

      • T

      Parameters

      • center: VectorPoint

        the center

      • data: T

        the data

      Returns S2Cap<T>

      • an empty cap