MCPcopy Create free account
hub / github.com/carbonengine/trinity / Fractal

Function Fractal

trinity/Curves/Tr2CurveEulerRotationExpression.cpp:15–18  ·  view source on GitHub ↗

--------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

13{
14// --------------------------------------------------------------------------------
15float Fractal( const Tr2CurveEulerRotationExpression* curve, float x, float alpha, float beta, float n )
16{
17 return float( ( PerlinNoise1D( x + curve->GetRandomConstant(), alpha, beta, int( n + 0.5f ) ) + 1.0 ) / 2.0 );
18}
19
20// --------------------------------------------------------------------------------
21float Noise( const Tr2CurveEulerRotationExpression* curve, float x )

Callers

nothing calls this directly

Calls 2

PerlinNoise1DFunction · 0.85
GetRandomConstantMethod · 0.45

Tested by

no test coverage detected