-
Notifications
You must be signed in to change notification settings - Fork 6
Math
JaeYoung Seon edited this page Oct 13, 2021
·
5 revisions
수학과 관련된 여러 함수 및 상수를 정의한 클래스이다.
Type | Name | Description |
---|---|---|
float |
EPSILON = 0.000001; |
매우 작은 실수를 나타낸다. |
float |
PI = 3.141592; |
원주율 π의 소수점 6자리 근사치이다. |
float |
TWO_PI = 2.f * PI; |
2π |
float |
HALF_PI = PI / 2.f; |
1/2 x π |
float |
INV_PI = 1.f / PI; |
1 / π |
float |
INV_TWO_PI = 1.f / TWO_PI; |
1 / 2π |
float |
DEG_TO_RAD = 0.0174533; |
각도를 Degree에서 Radian으로 변환할 때 사용한다. (ex. 30 degree == 0.523599 radian) |
float |
RAD_TO_DEG = 57.2958; |
각도를 Radian에서 Degree로 변환할 때 사용한다. (ex. 1.04719755119401 radian == 60 degree) |
Name | Description |
---|---|