title: get x, y, z values from Phonegap compass
body: <p>i am developing an augmented reality application with my team. we decided to choose phonegap as framework for developing it as a webapp.
  We use the Three.js framework to draw the augmented reality into the canvas.</p>
  
  <p>My problem is to get the camera rotation working based on the phone movement. i searched through the internet for a few days but can't get it.
  the actual idea was to use the getRotationMatrix() method out of the android SDK and rewrite it to javascript. but the problem is to get the x, y, z data from the compass. phonegap only provides heading relative to the geographic north pole in degrees (0 .. 360) but the getRotationMatrix() method uses the x, y, z values.</p>
  
  <p>is it possible to refract the axis values out of the heading value or get them directly?</p>
  
  <p>do you have other ideas to calculate the camera rotation on all three axis?</p>
  
  <p>thank you so much for any hints!</p>