add the functions to do Patient/Device coordinate transform