tags:

views:

102

answers:

1

What is the difference between atan2(x, y) and atan2(y, x) in acceleration code (iphone)...

Can you tell me briefly ?

A: 

according to wikipedia, arctangent gives you the angle between the x-axis and the point specified (I'm assuming the line is going through the origin).

which means that atan2(x,y) = 90 - atan2(y,x)

maybe.

Oren Mazor