title: Calculating 2d position of 3d point cloud data represented by angles and lengths
body: <p>I'm trying to build a thing that renders point cloud data stored in a specific way to a canvas using Javascript.</p>
  
  <p>The data is stored as (JSON, where -> represents a range of values including the two extremes) </p>
  
  <p>{"xangle":-Math.PI*2 -> Math.PI*2,"yangle": -Math.PI*2 -> Math.PI*2,"disntancefromorigin":10,"colour":blue}</p>
  
  <p>I've been having some trouble working out what the maths should be for turning the xangle, which represents the angle away from the x axis the line is and the yangle, which is the same but from the yaxis, and the distance from the origin into a "3d" point.</p>
  
  <p>I've been running code which generates a large array of points the same distance from the origin with the same distance and trying to manually brute force the algorithm till i got it right - but that didn't help much.</p>
  
  <p><img src="https://i.imgur.com/H5lBa.png" alt="here&#39;s an image which might make it clearer"></p>
  
  <p>thanks for any help, if I've not made something clear or you want to see the code just ask.</p>
  
  <p>EDIT: I should add, I'm just going for an Orthographic representation (at least till I can get that working)</p>