title: Working with Accelerometer
body: <p>I am working on gestures using acceleration values (x, y, z) from a device.</p>
  
  <p>If I hold the device in my hand in a resting position (x,y,z) = ((0,0,0)). But if I change the direction of device (still at resting position) the values are changed to something like ((766,766,821)). As all the x, y, z axis are changed compared to their original orientations.</p>
  
  <p>Is there any way (trigonometric function OR other) to resolve this issue?</p>