Function Repository Resource:

# LoxodromeDistance

Compute the loxodrome distance between two points on a unit sphere

Contributed by: Jan Mangaldan
 ResourceFunction["LoxodromeDistance"][p1,p2] gives the loxodrome distance between points p1 and p2 lying on a sphere centered at the origin.

## Details

The loxodrome, or rhumb line, is a curve of constant bearing/direction on the sphere.
ResourceFunction["LoxodromeDistance"] gives the arclength of the loxodrome connecting p1 and p2.

## Examples

### Basic Examples (1)

The loxodrome distance of two points on a sphere of radius 2:

 In[1]:=
 Out[1]=

### Scope (1)

Loxodrome distance for two randomly chosen points on the unit sphere:

 In[2]:=
 Out[3]=

### Properties and Relations (5)

Two points on the unit sphere:

 In[4]:=
 Out[4]=

Compute the corresponding longitudes and latitudes:

 In[5]:=
 Out[5]=

Define and visualize the loxodrome joining the two points:

 In[6]:=
 Out[7]=

Find the arclength of the loxodrome:

 In[8]:=
 Out[8]=

This is equivalent to the result of LoxodromeDistance:

 In[9]:=
 Out[9]=

## Version History

• 1.0.0 – 19 September 2022