The forward vector.
The pitch.
The yaw.
DirectionToPitchAndYaw Method
Computation of Pitch and Yaw angles from forward vector
Syntax
public static void DirectionToPitchAndYaw( 
   Vector3 direction,
   out float pitch,
   out float yaw
)

Parameters

direction
The forward vector.
pitch
The pitch.
yaw
The yaw.
Remarks
See original implementation here: http://www.jldoty.com/code/DirectX/YPRfromUF/YPRfromUF.html
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also