quadtrafo function

Transforming of 4 dimensional values in a barycentric coordinate system.