Converts points to barycentric coordinates