티스토리 뷰
Java의 Math 클래스를 이용하여 좌표계의 각도를 구하는 방법은 아래와 같다.
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)); |
반응형
'java' 카테고리의 다른 글
[java][스크랩] JSON 파서 선택하기 (0) | 2016.10.06 |
---|---|
Tree 구조 (0) | 2016.05.24 |
[개념] 스택(stack)과 힙(heap) (0) | 2016.02.16 |
[JDK8] Date, Calendar, LocaDateTime 날자 관련 객체들 사용법 (0) | 2015.06.09 |
[어노테이션] 어노테이션과 리플렉션을 이용한 메소드 실행시간 출력하기 (0) | 2015.06.04 |
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- 다이나믹
- yarn
- Python
- HIVE
- build
- Hadoop
- java
- nodejs
- HDFS
- SPARK
- SQL
- Tez
- airflow
- S3
- 하이브
- 오류
- error
- 백준
- mysql
- 정올
- 파이썬
- 하둡
- bash
- hbase
- 알고리즘
- AWS
- emr
- ubuntu
- Linux
- oozie
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
글 보관함