NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
eggMath.h
1
#pragma once
2
3
#include <
lib/MSL_C/math.h
>
4
5
namespace
EGG {
6
/// @note Unfinished
7
template
<
class
T>
8
class
Math
{
9
public
:
10
static
T sqrt(T v);
11
12
static
T abs(T v) {
13
return
v < 0 ? -v : v;
14
}
15
16
static
T zero() {
return
0; }
17
};
18
19
// [TODO: This overload likely doesn't exist]
20
template
<>
21
float
Math<float>::abs(
float
v) {
22
return
fabs
(v);
23
}
24
25
typedef
Math<float> Mathf;
26
}
EGG::Math
Definition
eggMath.h:8
fabs
double fabs(double x)
Returns the absolute value of x.
Definition
math.h:15
math.h
include
lib
egg
math
eggMath.h
Made with ❤️ by
CLF78
and
RootCubed
. Logos by
Chasical
and
B1
. Website generated by
Doxygen
1.13.2