Original Post
I want two angles:
|
|--\
| | This one (pitch)
|__|_____
/ /
/--/ and this one (yaw)
/
/
(Assume that a vector from the origin is going to (2,2,2))
[\code]
I was thinking of doing this:
pitch = atan2(z,x));
yaw = atan2(y,x));
Unfortunatly the pitch is wrong. The higher the yaw is, the more the pitch is wrong. I cannot find the relationship between them though. Any help?