Distance-function barycentric map (source code)

= Distance-function barycentric map

Normalized distances to three closed sets give continuous barycentric coordinates; a covering forces at least one coordinate to vanish, placing the image on the simplex boundary.