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

Method GetValueAtAverage

trinity/TriSequencer.cpp:91–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91Vector3* TriVectorSequencer::GetValueAtAverage(
92 Vector3* in,
93 Be::Time now )
94{
95 *in = Vector3( 0.0f, 0.0f, 0.0f );
96 Vector3 temp;
97 float multiplier = 1.f / (float)mFunctions.GetSize();
98 for( int i = 0; i < mFunctions.GetSize(); i++ )
99 {
100 mFunctions[i]->GetValueAt( &temp, now );
101 *in += temp * multiplier;
102 }
103 return in;
104}
105
106Vector3* TriVectorSequencer::GetValueAtAdd(
107 Vector3* in,

Callers

nothing calls this directly

Calls 3

Vector3Class · 0.70
GetSizeMethod · 0.45
GetValueAtMethod · 0.45

Tested by

no test coverage detected