CoordinatesToXY function

Convert user-specified ternary coordinates into X and Y coordinates