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

    Function clipPoint

    • Type Parameters

      • M extends Properties = Properties

      Parameters

      • geometry: VectorPointGeometry<M>

        input vector geometry

      • axis: 0 | 1

        0 for x, 1 for y

      • k1: number

        minimum accepted value of the axis

      • k2: number

        maximum accepted value of the axis

      Returns undefined | VectorPointGeometry<M>

      • the clipped geometry or undefined if the geometry was not inside the range