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

Function Noise

trinity/Curves/Tr2CurveEulerRotationExpression.cpp:21–24  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

19
20// --------------------------------------------------------------------------------
21float Noise( const Tr2CurveEulerRotationExpression* curve, float x )
22{
23 return float( ( PerlinNoise1D( x + curve->GetRandomConstant(), 1.0, 1.0, 1 ) + 1.0 ) / 2.0 );
24}
25
26// --------------------------------------------------------------------------------
27float RandomConstant( const Tr2CurveEulerRotationExpression* curve, float a, float b )

Callers

nothing calls this directly

Calls 2

PerlinNoise1DFunction · 0.85
GetRandomConstantMethod · 0.45

Tested by

no test coverage detected