Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
Z2Calc.h
Go to the documentation of this file.
1#ifndef Z2CALC_H
2#define Z2CALC_H
3
4#include "dolphin/types.h"
5
6namespace Z2Calc {
12
13struct FNoise1f {
14 FNoise1f(float param_0 = 0.1f, float param_1 = 0.0f, float param_2 = 0.01f) {
15 unk0 = param_0;
16 unk4 = param_0;
17 unk8 = param_2;
18 unk12 = param_1;
19 }
20 void setParam(float, float, float);
21 float tau(float);
22 float calcNoise1f();
23
24 float unk0;
25 float unk4;
26 float unk8;
27 float unk12;
28};
29
30float linearTransform(float, float, float, float, float, bool);
31float getParamByExp(float, float, float, float, float, float, Z2Calc::CurveSign);
32float getRandom(float, float, float);
33float getRandom_0_1(void);
34
35extern f32 cEqualCSlope;
36extern f32 cEqualPSlope;
37} // namespace Z2Calc
38
39#endif /* Z2CALC_H */
T cLib_calcTimer(T *value)
Definition c_lib.h:74
Definition Z2Calc.h:6
float getParamByExp(float, float, float, float, float, float, Z2Calc::CurveSign)
Definition Z2Calc.cpp:51
f32 cEqualCSlope
Definition Z2Calc.cpp:44
float getRandom(float, float, float)
Definition Z2Calc.cpp:72
CurveSign
Definition Z2Calc.h:7
@ CURVE_SIGN_0
Definition Z2Calc.h:8
@ CURVE_SIGN_1
Definition Z2Calc.h:9
@ CURVE_SIGN_2
Definition Z2Calc.h:10
f32 cEqualPSlope
Definition Z2Calc.cpp:47
float getRandom_0_1(void)
Definition Z2Calc.cpp:81
float linearTransform(float, float, float, float, float, bool)
Definition Z2Calc.cpp:17
Definition Z2Calc.h:13
FNoise1f(float param_0=0.1f, float param_1=0.0f, float param_2=0.01f)
Definition Z2Calc.h:14
float tau(float)
Definition Z2Calc.cpp:95
float unk8
Definition Z2Calc.h:26
void setParam(float, float, float)
Definition Z2Calc.cpp:87
float calcNoise1f()
Definition Z2Calc.cpp:118
float unk0
Definition Z2Calc.h:24
float unk4
Definition Z2Calc.h:25
float unk12
Definition Z2Calc.h:27
float f32
Definition types.h:22