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

Function RandomConstant

trinity/Curves/Tr2CurveVector3Expression.cpp:27–30  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

25
26// --------------------------------------------------------------------------------
27float RandomConstant( const Tr2CurveVector3Expression* curve, float a, float b )
28{
29 return ( ( b - a ) * curve->GetRandomConstant() ) + a;
30}
31
32float RandomHash( const Tr2CurveVector3Expression* curve, float a, float b, float x )
33{

Callers

nothing calls this directly

Calls 1

GetRandomConstantMethod · 0.45

Tested by

no test coverage detected