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

Method GetRangeDuration

trinity/Curves/TriCurveSet.cpp:302–313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

300}
301
302float TriCurveSet::GetRangeDuration( const char* rangeName ) const
303{
304 for( auto it = begin( m_ranges ); it != end( m_ranges ); ++it )
305 {
306 auto range = *it;
307 if( range->m_name == rangeName )
308 {
309 return range->m_endTime - range->m_startTime;
310 }
311 }
312 return 0;
313}
314
315bool TriCurveSet::IsPlaying() const
316{

Callers 2

CurveSetTimeFunction · 0.45
StartMethod · 0.45

Calls 2

beginFunction · 0.50
endFunction · 0.50

Tested by

no test coverage detected