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

Method GetRandomConstant

trinity/Curves/Tr2CurveVector3Expression.cpp:212–222  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

210
211// --------------------------------------------------------------------------------
212float Tr2CurveVector3Expression::GetRandomConstant() const
213{
214 if( g_expressionCurveFakeRandom )
215 {
216 return 0.21f;
217 }
218 else
219 {
220 return m_randomConstant;
221 }
222}
223
224// --------------------------------------------------------------------------------
225float Tr2CurveVector3Expression::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