https://123dok.net/document/z1d4ke0p-problems-with-defining-barycentric-coordinates-for-the-sphere.html