How can I map a triangle on an sphere? I want to visualize (plot or animate) it for my student in my Non Euclidean geometry. I have no restrictions on the triangle's kind or on the sphere in $\mathbb R^3$. Thanks for any hint.
Here is code from that, with my own refactoring:
I might as well... let me present here the spherical geometry version of this answer. I shall provide two flavors in this answer as well: one where all the arc lengths are given, and one where all the interior angles are given. The formulae used within those routines are nothing more than an application of the spherical law of cosines.
Now, on to the routines. But first, a few auxiliaries:
Here, then, is the routine for drawing a spherical triangle on a unit sphere, given the (normalized) side lengths:
Here's the routine for drawing a spherical triangle on the unit sphere, given the interior angles:
I made the normalization that one of the vertices is always $(\theta,\varphi)=(0,0)$; if you want your triangles to be positioned somewhere else, modifying the routines should not be too difficult.