atan, atan2의 차이는 그냥 매개변수의 갯수차이라고 한다.
atan2는 특정한 x,y 좌표에 각도를 계산하도록 한다.
degree로 뽑아내여 나오는 결과는 -180~180의 값이다..
degree to rad => pi / 180
rad to degree => 180 / pi
230도의 예상결과는 -130가 나오고, 이럴경우 +360정도해주면될테고,
130도의 예상결과는 130도를 뽑아낼수있다.
'프로그래밍 > 리서치결과' 카테고리의 다른 글
windows api Dialog Z Order 순서알기 (0) | 2014.08.13 |
---|---|
빅엔디안, 리틀엔디안 (0) | 2013.11.19 |
string to LPCWSTR (0) | 2013.09.26 |
warning c4819 the file contains a character that cannot be represented in the current code page (0) | 2013.08.06 |
QT setBackgroundBrsh에 대한 error 확인. (0) | 2013.05.27 |