I've got the rotation matrix and quaternion of a mobile device. I'm trying to calculate the vertical angle from it. What I'm trying to get is for example 0° if the device is held in portrait mode and 90° in landscape mode.
Any help would be appreciated. I'm sorry if this was asked before, I don't have any experience with this and didn't really know what to search for.