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

Method GetInputValue

trinity/Curves/Tr2CurveVector3Expression.cpp:225–232  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

223
224// --------------------------------------------------------------------------------
225float Tr2CurveVector3Expression::GetInputValue( int index ) const
226{
227 if( index < 0 || index >= int( m_inputs.size() ) )
228 {
229 return 0;
230 }
231 return const_cast<ITriScalarFunction*>( m_inputs[index] )->GetValueAt( m_arguments.m_time );
232}
233
234// --------------------------------------------------------------------------------
235float Tr2CurveVector3Expression::GetInputValue( int index, float time ) const

Callers 2

InputFunction · 0.45
InputAtFunction · 0.45

Calls 2

sizeMethod · 0.80
GetValueAtMethod · 0.45

Tested by

no test coverage detected