title: How to get a 3D point in my space with Yaw, Pitch and Roll and len
body: <p>i need to calculate a 3d point in my world space when i have roll pitch , yaw , len.</p>
  
  <p>need a function like this return for me a 3dpoint :</p>
  
  <pre><code>Get3DpointFrom_yaw_pitch_roll(yaw,pitch,roll,len)
  </code></pre>
  
  <p>Thanks !</p>
  
  <p>i try this code but the problem is when yaw value is 0 the y will set zero ! </p>
  
  <pre><code> float x=0,y=0,z=0,r=30;float theta=0; float phi=0; 
  
   theta=-Camera_Yaw*3.1415/180; 
  
   phi=(3.1415/2)-(-Camera_Pitch*3.1415/180); 
  
   x = r*sin(theta)*cos(phi); 
   y = r*sin(theta)*sin(phi); 
   z = r*cos(theta);
  </code></pre>