@openhps/geospatial
    Preparing search index...

    Function sharedBoundary

    • Compares two space polygons: are they adjacent, do they overlap, and where do they meet?

      Adjacency is derived from the geometry rather than a hand-drawn edge: a pair of spaces is adjacent when their boundaries touch or lie within tolerance, or when they overlap slightly (a modelling gap). A fully contained polygon is reported as an overlap; callers should not connect overlapping spaces.

      Parameters

      • a: readonly Point2[]

        The first ring

      • b: readonly Point2[]

        The second ring

      • tolerance: number

        Wall/gap tolerance in metres

      Returns SharedBoundary

      The relationship between the two polygons