Attitude determination in higher dimensions