@openhps/geospatial
    Preparing search index...

    Function collinearOverlap

    • Computes the length of the overlap between two collinear segments.

      Parameters

      • a1: Point2

        First segment start

      • a2: Point2

        First segment end

      • b1: Point2

        Second segment start

      • b2: Point2

        Second segment end

      • tolerance: number

        Maximum perpendicular distance for the segments to count as collinear

      Returns { length: number; midpoint: Point2 }

      The overlap length in metres and its midpoint, or undefined