@openhps/geospatial
    Preparing search index...

    Function positionDistance

    • Computes the distance between two positions in metres.

      Cartesian positions are compared in metres, geographical positions through their ECEF coordinates (a chord length, which is indistinguishable from the great-circle distance at building scale).

      Parameters

      • a: AbsolutePosition

        The first position

      • b: AbsolutePosition

        The second position

      Returns number

      The distance in metres