NC functions for coordinate transformation