Switched interpolation function from xyz nomenclature to 123