title: How to use accelerometer, CMMotion data to locate a point in 3D space?
body: <p>I am creating an application. In which iPhone will be placed (a separate cover is made for it) with golf club(racket). I want to get array of points which state the path of the racket movement.</p>
  
  <p>For example, I start collecting the data when racket is on the ground. After then user prepares himself for shot. So, he will take the racket back side and then he will hit the shot by moving racket forward. I want to catch all these points in 3D and want to plot them on screen (2D projection). I saw many similar questions, accelerometer, CMMotion framework documents. But could not find a way to doing so.</p>
  
  <p>I hope, I have explained the question properly. Can you suggest me some formula or how to process the data to achieve it?</p>
  
  <p>Thanks in advance. </p>