Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
constants.h
Go to the documentation of this file.
1#ifndef NW4HBM_MATH_CONSTANTS_H
2#define NW4HBM_MATH_CONSTANTS_H
3
4#include <revolution/types.h>
5
6namespace nw4hbm {
7 namespace math {
8 static f32 const Ln2 = 0.69314718056f;
9 static f32 const Pi = 3.141592653589f;
10 static f32 const Tau = 2.0f * Pi;
11
12 namespace convert {
13 static f32 const Deg2Rad = Pi / 180.0f;
14 // Rad2Deg
15
16 static f32 const Deg2FIdx = 256.0f / 360.0f;
17 static f32 const FIdx2Deg = 360.0f / 256.0f;
18
19 static f32 const Rad2FIdx = 256.0f / Tau;
20 static f32 const FIdx2Rad = Tau / 256.0f;
21 } // namespace convert
22 } // namespace math
23} // namespace nw4hbm
24
25#endif // NW4HBM_MATH_CONSTANTS_H
float f32
Definition types.h:25
static f32 const FIdx2Deg
Definition constants.h:17
static f32 const Deg2Rad
Definition constants.h:13
static f32 const Deg2FIdx
Definition constants.h:16
static f32 const Rad2FIdx
Definition constants.h:19
static f32 const FIdx2Rad
Definition constants.h:20
static f32 const Tau
Definition constants.h:10
static f32 const Pi
Definition constants.h:9
static f32 const Ln2
Definition constants.h:8
Definition HBMAnmController.h:6