Add barycentric helper functions.