Optimized xyz_from_pt