I've got this problem where I want to convert a vector (X,Y,Z) to an angle (Pitch, Yaw, Roll) in degrees (radians is also fine).
I've searched the internet but all examples I find are either in 2D or they just return one angle (the angle between two vectors or similar).
The vector is representing the direction of an object (the forward vector).
Things I have to go with: forward vector, right vector, up vector, rotation matrix, the rotation in quaternions.
Can't use the quaternions since I actually need the degrees (or radians).
Have also tried to find a way to convert quaternions to radians but I never found a working example.
This is applied for a computer game I am working on for school, basically I need some theory.
Any help would be much appreciated!