Given a triangular mesh on a sphere described by mesh locations
(phi
, lambda
), a radius R
and a triangulation
Tt
, determine the Cartesian coordinates of points cb
given in barycentric coordinates with respect to the mesh.
bary.to.sphere.cart(phi, lambda, R, Tt, cb)
Latitudes of mesh points
Longitudes of mesh points
Radius of sphere
Triangulation
Object returned by tsearch containing information on the triangle in which a point occurs and the barycentric coordinates within that triangle
An N-by-3 matrix of the Cartesian coordinates of the points