Original Post
For some simple rotation stuff im trying to just use a Pitch, Yaw and a normal for all my stuff...
Now, Ill need conversions between them
Vector -> Pitch/Yaw
Yaw = atan2f( Normal.x, Normal.z );
float xzlen = sqrtf( (Normal.x*Normal.x) + (Normal.z*Normal.z) );
Pitch = atan2f( xzlen, Normal.y );
This is right, now, getting the vector seems to be wrong, Im pretty sure the below is correct...
Pitch/Yaw -> Vector
Normal.x = sinf( Pitch ) * sinf( Yaw );
Normal.z = sinf( Pitch ) * cosf( Yaw );
Normal.y = cosf( Pitch );
but aparently not, does anybody have the proper formulae/calculations?