mirror of
https://github.com/zeldaret/tp
synced 2026-05-23 23:05:36 -04:00
6d946e8330
* Z2Calc OK * inline definitions in random.h and format * set -enum int compiler flag and fix enum hacks * note for get_ufloat_1 inline * PR suggestions and UB note Co-authored-by: Pheenoh <pheenoh@gmail.com>
26 lines
548 B
C++
26 lines
548 B
C++
#include "JSystem/JMath/random.h"
|
|
#include "global.h"
|
|
|
|
namespace Z2Calc {
|
|
enum CurveSign {
|
|
CURVE_SIGN_0 = 0,
|
|
CURVE_SIGN_1 = 1,
|
|
};
|
|
|
|
struct FNoise1f {
|
|
void setParam(float, float, float);
|
|
float tau(float);
|
|
float calcNoise1f();
|
|
|
|
float unk0;
|
|
float unk4;
|
|
float unk8;
|
|
float unk12;
|
|
};
|
|
|
|
float linearTransform(float, float, float, float, float, bool);
|
|
float getParamByExp(float, float, float, float, float, float, Z2Calc::CurveSign);
|
|
float getRandom(float, float, float);
|
|
float getRandom_0_1(void);
|
|
} // namespace Z2Calc
|