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.
精彩评论