In the projection of points onto the sphere, some triangles maybe flipped, i.e. in the wrong orientation. This functions determines which triangles are flipped by computing the vector pointing to the centre of each triangle and comparing this direction to vector product of two sides of the triangle.
flipped.triangles(Ps, Tt, R = 1)N-by-2 matrix with columns containing latitudes
(phi) and longitudes (lambda) of N points
Triangulation of points
Radius of sphere
List containing:
flippedIndices of in rows of Tt of flipped triangles.
centsVectors of centres.
areasAreas of triangles.