- (void)accelerometer:(UIAccelerometer *)accelerometer didAccelerate:(UIAcceleration *)acceleration
Using the above method we got an acceleration value of (x and y and z).Now i want to find angle between (x and y) and (y and z) and (z and x).How can i do this?
Can anyone help me ?
Thanks in advance…..
If your acceleration vector is a = (x, y, z), then the angles between this vector and the three axes are given by:
To get the angles themselves you’ll need to use the inverse cos function