NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
math_constant.h
1
#ifndef NW4R_MATH_CONSTANT_H
2
#define NW4R_MATH_CONSTANT_H
3
#include <nw4r/types_nw4r.h>
4
5
#include <cmath>
6
7
/******************************************************************************
8
*
9
* Mathematical constants
10
*
11
******************************************************************************/
12
// Pi mathematical constant
13
#define NW4R_MATH_PI M_PI
14
15
// ln(2)
16
#define NW4R_MATH_LN_2 0.69314718056f
17
18
// 1 / sqrt(3)
19
#define NW4R_MATH_INVSQRT3 0.577350258f
20
21
/******************************************************************************
22
*
23
* Not-a-number (NaN) types
24
*
25
******************************************************************************/
26
// Quiet NaN (0x7FC00000)
27
#define NW4R_MATH_QNAN (-(0.0f / 0.0f))
28
29
/******************************************************************************
30
*
31
* Float limits
32
*
33
******************************************************************************/
34
// Smallest finite floating-point value
35
#define NW4R_MATH_FLT_MIN 1.175494350e-38f
36
37
// Largest finite floating-point value
38
#define NW4R_MATH_FLT_MAX 3.402823466e+38f
39
40
// Difference between 1.0 and the next representable value
41
#define NW4R_MATH_FLT_EPSILON 1.192092895e-7f
42
43
#endif
include
lib
nw4r
math
math_constant.h
Made with ❤️ by
CLF78
and
RootCubed
. Logos by
Chasical
and
B1
. Website generated by
Doxygen
1.13.2