Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Compute the loxodrome distance between two points on a unit sphere
ResourceFunction["LoxodromeDistance"][p1,p2] gives the loxodrome distance between points p1 and p2 lying on a sphere centered at the origin. |
The loxodrome distance of two points on a sphere of radius 2:
In[1]:= | ![]() |
Out[1]= | ![]() |
Loxodrome distance for two randomly chosen points on the unit sphere:
In[2]:= | ![]() |
Out[3]= | ![]() |
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]= | ![]() |
This work is licensed under a Creative Commons Attribution 4.0 International License