Last active
May 19, 2016 13:41
-
-
Save developer-sdk/6157f4e47ec3ae2da19e37a77cf9dbb1 to your computer and use it in GitHub Desktop.
Math의 atna2(x, y) 메소드와 toDegrees() 메소드를 이용하여 좌표계의 각도 구하기
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 수직 기둥을 기준으로 각도가 나온다고 생각하면 됨 | |
// (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