Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Compute the parametrization of a curve projected onto the unit sphere
ResourceFunction["InverseStereographicProjection"][{u,v}] projects {u,v} from a plane onto the unit sphere. |

Compute the inverse stereographic projection of a generic point:
| In[1]:= |
| Out[1]= |
Define an ellipse:
| In[2]:= |
Project an ellipse onto the sphere:
| In[3]:= |
| Out[3]= |
Plot the projected ellipse:
| In[4]:= | ![]() |
| Out[4]= | ![]() |
Define a logarithmic spiral curve:
| In[5]:= |
| Out[5]= |
A plot of the logarithmic spiral:
| In[6]:= |
| Out[6]= | ![]() |
Project the spiral onto the sphere; it becomes a spherical loxodrome:
| In[7]:= |
| Out[7]= |
Compute the norm of the logarithmic spiral:
| In[8]:= |
| Out[8]= |
Plot the projected spiral with meridians:
| In[9]:= | ![]() |
| Out[9]= | ![]() |
Plot the spherical loxodrome:
| In[10]:= | ![]() |
| Out[10]= | ![]() |
Define the second butterfly curve:
| In[11]:= |
| Out[11]= |
Project the curve onto the sphere:
| In[12]:= | ![]() |
| Out[12]= | ![]() |
Plot the curve and the projection:
| In[13]:= | ![]() |
| Out[13]= | ![]() |
The norm of the stereographic sphere:
| In[14]:= |
| Out[14]= |
Project a grid of points in Cartesian coordinates:
| In[15]:= |
A Cartesian grid on the plane appears distorted on the sphere; show the points and their projections onto the sphere:
| In[16]:= | ![]() |
| Out[16]= | ![]() |
Project a grid of lines instead:
| In[17]:= | ![]() |
Show the lines and their projections:
| In[18]:= | ![]() |
| Out[18]= | ![]() |
The same mesh can be generated by ParametricPlot3D. The grid lines are still perpendicular, but the sectors get smaller close to the north pole:
| In[19]:= | ![]() |
| Out[19]= | ![]() |
This work is licensed under a Creative Commons Attribution 4.0 International License