开发者

Difference between two implementations of atan2 when using UIAcceleration

What is the difference between atan2(x, y) and atan2(y, x) in acceleration code (iphone).开发者_如何学Python..

Can you tell me briefly ?


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜