Skip to content

Instantly share code, notes, and snippets.

@developer-sdk
Last active May 19, 2016 13:41
Show Gist options
  • Save developer-sdk/6157f4e47ec3ae2da19e37a77cf9dbb1 to your computer and use it in GitHub Desktop.
Save developer-sdk/6157f4e47ec3ae2da19e37a77cf9dbb1 to your computer and use it in GitHub Desktop.
Math의 atna2(x, y) 메소드와 toDegrees() 메소드를 이용하여 좌표계의 각도 구하기
// 수직 기둥을 기준으로 각도가 나온다고 생각하면 됨
// (5, 5) : 45.0
// (-5, 5) : -45.0
double degree = Math.toDegrees(Math.atan2(x, y));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment