원점이 center_X, center_Y

터치점 touch_X, touch_Y

 

일떄 원점과 터치지점를 연결했다고했을떄

화면에서 보는 입장에서이제 그 각도를 구하는거죠

원점이 중심점인샘이라서

 

float dx = center_X - touch_X;
float dy = center_Y - touch_Y;
radian = (float) Math.atan2(dx, dy);

 

이렇게 하고

 

pointX = (float) ((Math.sin(radian) * pRadius) + posX);
pointY = (float) ((Math.cos(radian) * pRadius) + posY);

 

이렇게 하면 된다는데.....

 

pointX, pRadius, posX는 어떤 값인지.. 설명도 안되있고

 

이 방법이 맞나요?

다른 좋은 방법이 있나요?