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

Function RandomConstant

trinity/Curves/Tr2CurveScalarExpression.cpp:31–34  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

29
30// --------------------------------------------------------------------------------
31float RandomConstant( const Tr2CurveScalarExpression* curve, float a, float b )
32{
33 return ( ( b - a ) * curve->GetRandomConstant() ) + a;
34}
35
36float RandomHash( const Tr2CurveScalarExpression* curve, float a, float b, float x )
37{

Callers

nothing calls this directly

Calls 1

GetRandomConstantMethod · 0.45

Tested by

no test coverage detected