WLJS LogoWLJS Notebook

SphericalDistance

SphericalDistance[{θ1,ϕ1},{θ2,ϕ2}] returns the great-circle distance between points {θ1,ϕ1} and {θ2,ϕ2} on the surface of a unit sphere.

SphericalDistance[{θ1,1,θ1,2,…,ϕ1},{θ2,1,θ2,2,…,ϕ2}] returns the geodesic distance between arbitrary-dimensional points on the surface of a unit hypersphere.

Examples

Compute the great-circle distance on a unit sphere:

SphericalDistance[{0, 0}, {Pi/2, 0}]
(* Pi/2 *)

Please visit the official Wolfram Language Reference for more details.

On this page