Add specific device orientation helpers.
Added a helper to convert device to (ideal) interface orientation.