Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
Z2Calc Namespace Reference

Classes

struct  FNoise1f
 

Enumerations

enum  CurveSign { CURVE_NEGATIVE = 0 , CURVE_POSITIVE = 1 , CURVE_LINEAR = 2 }
 

Functions

f32 linearTransform (f32 inValue, f32 inMin, f32 inMax, f32 outMin, f32 outMax, bool noClamp)
 
f32 getParamByExp (f32 value, f32 inMin, f32 inMax, f32 exponent, f32 outMin, f32 outMax, CurveSign curveSign)
 
f32 getRandom (f32 magnitude, f32 exponent, f32 bias)
 
f32 getRandom_0_1 ()
 

Variables

static Vec cNullVec = {0.0f, 0.0f, 0.0f}
 
const f32 cEqualCSlope = 1.0f
 
const f32 cEqualPSlope = 0.5f
 

Enumeration Type Documentation

◆ CurveSign

Enumerator
CURVE_NEGATIVE 
CURVE_POSITIVE 
CURVE_LINEAR 

Function Documentation

◆ getParamByExp()

f32 Z2Calc::getParamByExp ( f32 value,
f32 inMin,
f32 inMax,
f32 exponent,
f32 outMin,
f32 outMax,
Z2Calc::CurveSign curveSign )

◆ getRandom()

f32 Z2Calc::getRandom ( f32 magnitude,
f32 exponent,
f32 bias )

◆ getRandom_0_1()

f32 Z2Calc::getRandom_0_1 ( )

◆ linearTransform()

f32 Z2Calc::linearTransform ( f32 inValue,
f32 inMin,
f32 inMax,
f32 outMin,
f32 outMax,
bool noClamp )

Variable Documentation

◆ cEqualCSlope

const f32 Z2Calc::cEqualCSlope = 1.0f
extern

◆ cEqualPSlope

const f32 Z2Calc::cEqualPSlope = 0.5f
extern

◆ cNullVec

static const Vec Z2Calc::cNullVec = {0.0f, 0.0f, 0.0f}
static