Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Generate the circumcircle of a spherical triangle
| ResourceFunction["SphericalCircumcircle"][{p1,p2,p3}] returns a BSplineCurve representing the circumcircle of the spherical triangle with corner points p1,p2, and p3. | |
| ResourceFunction["SphericalCircumcircle"][{p1,p2,p3},property] gives the value of the specified property. | 
| "Association" | association containing the circumcircle, circumcenter and circumradius | 
| "Center" | center of the circumcircle (in Cartesian coordinates) | 
| "Circle" | BSplineCurve representing the circumcircle | 
| "Radius" | circumradius (spherical distance) | 
Generate the vertices of a spherical triangle:
| In[1]:= | ![tri = RandomPoint[Sphere[], 3]](https://www.wolframcloud.com/obj/resourcesystem/images/968/96889008-4601-4d20-b996-685e47cacbbb/01f2252959a3adff.png) | 
| Out[1]= |  | 
Show the circumcircle as a BSplineCurve object:
| In[2]:= | ![ResourceFunction["SphericalCircumcircle"][tri]](https://www.wolframcloud.com/obj/resourcesystem/images/968/96889008-4601-4d20-b996-685e47cacbbb/63e6b525cfeba3c8.png) | 
| Out[2]= |  | 
Visualize the spherical triangle and its circumcircle together:
| In[3]:= | ![Graphics3D[{Sphere[],
  {Directive[Red, AbsolutePointSize[8]], Point[tri]},
  {FaceForm[], ResourceFunction["SphericalPolygon"][tri, "EdgeStyle" -> Directive[Red, AbsoluteThickness[3]], "ShowEdges" -> True]}, {Directive[AbsoluteThickness[2], Blue], ResourceFunction["SphericalCircumcircle"][tri]}},
 Boxed -> False, ViewPoint -> {-2.4, 1.3, -2.}]](https://www.wolframcloud.com/obj/resourcesystem/images/968/96889008-4601-4d20-b996-685e47cacbbb/6fe17da04e9ce827.png) | 
| Out[3]= |  | 
Generate the vertices of a spherical triangle:
| In[4]:= | ![tri = RandomPoint[Sphere[], 3]](https://www.wolframcloud.com/obj/resourcesystem/images/968/96889008-4601-4d20-b996-685e47cacbbb/4cedb306c7fb8ba8.png) | 
| Out[209]= |  | 
Return the circumcenter and circumradius:
| In[210]:= | ![ResourceFunction["SphericalCircumcircle"][tri, "Center"]](https://www.wolframcloud.com/obj/resourcesystem/images/968/96889008-4601-4d20-b996-685e47cacbbb/796d20242b8ff6e2.png) | 
| Out[210]= |  | 
| In[211]:= | ![ResourceFunction["SphericalCircumcircle"][tri, "Radius"]](https://www.wolframcloud.com/obj/resourcesystem/images/968/96889008-4601-4d20-b996-685e47cacbbb/6842dadee64524ff.png) | 
| Out[211]= |  | 
This work is licensed under a Creative Commons Attribution 4.0 International License