math docs
    Preparing search index...

    Function angleTo

    • Returns the great-circle angle (in radians) between two spherical coordinates, ignoring r. Equivalent to the central angle between the two directions on a unit sphere.

      Uses the numerically stable haversine formula.

      Parameters

      • a: readonly [number, number, number]

        the first Spherical

      • b: readonly [number, number, number]

        the second Spherical

      Returns number

      angle in radians in [0, π]