title: 3D point from two angles and a distance
body: <p>I want to be able to calculate the coordinates of a 3D point, based on its distance from the origin, and two angles: "yaw" around Y-axis, and "pitch" around the X-axis.</p>
  
  <p>In the example, distance from the origin would be 50 units, yaw 10 degrees, and pitch 10 degrees.</p>
  
  <p>Is there a formula to retrieve the 3D result point?</p>
  
  <p><a href="https://i.stack.imgur.com/ckIgN.png" rel="noreferrer"><img src="https://i.stack.imgur.com/ckIgN.png" alt="Graphic"></a></p>