This PR generalizes the mpas_sphere_angle function so that provides correct results for non-unit-radius spheres.
The methods previously employed in the mpas_sphere_angle function for computing the side lengths of a spherical triangle were only applicable to unit-radius spheres. This PR generalizes the computation of these side lengths so that the mpas_sphere_angle function can be used to compute spherical angles on spheres of arbitrary radius.
This PR generalizes the
mpas_sphere_angle
function so that provides correct results for non-unit-radius spheres.The methods previously employed in the
mpas_sphere_angle
function for computing the side lengths of a spherical triangle were only applicable to unit-radius spheres. This PR generalizes the computation of these side lengths so that thempas_sphere_angle
function can be used to compute spherical angles on spheres of arbitrary radius.