开发者

Difference between two implementations of atan2 when using UIAcceleration

开发者 https://www.devze.com 2022-12-30 11:54 出处:网络
What is the difference between atan2(x, y) and atan2(y, x) in acceleration code (iphone).开发者_如何学Python..

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

精彩评论

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