Terncoords converts ternary fractions to rectangular coordinates, but we need to be able to go back from those coordinates to the fractions.