added transformation algorithm for ternary and polar axes