Compute the area of a small triangle on a sphere.
a vector of length 3 specifying the longitudes of the triangle vertices.
a vector of length 3 specifying the latitudes of the triangle vertices.
This function works in x-y-z coordinates, meaning that it becomes imprecise for larger triangles (e.g. spanning more than a few degrees). However, the function is comparably fast and may therefore be favoured when applied to many small triangles. If accuracy is an issue, use
A scalar giving the area of the triangle (on a unit sphere).
1 2 3 4 5 6 7 8 9
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.