math docs
    Preparing search index...

    Function distance

    • Returns the straight-line (chord) distance between two polar coordinates, via the law of cosines.

      Parameters

      • a: readonly [number, number]

        the first Polar

      • b: readonly [number, number]

        the second Polar

      Returns number

      the Euclidean distance between the two points