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

Method GetRandomConstant

trinity/Curves/Tr2CurveEulerRotationExpression.cpp:213–223  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

211
212// --------------------------------------------------------------------------------
213float Tr2CurveEulerRotationExpression::GetRandomConstant() const
214{
215 if( g_expressionCurveFakeRandom )
216 {
217 return 0.21f;
218 }
219 else
220 {
221 return m_randomConstant;
222 }
223}
224
225// --------------------------------------------------------------------------------
226float Tr2CurveEulerRotationExpression::GetInputValue( int index ) const

Callers 3

FractalFunction · 0.45
NoiseFunction · 0.45
RandomConstantFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected