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

Method GetMaxCurveDuration

trinity/Curves/TriCurveSet.cpp:277–300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

275}
276
277float TriCurveSet::GetMaxCurveDuration() const
278{
279 float maxDuration = 0.0f;
280
281 for( ITriFunctionVector::const_iterator it = m_curves.begin(); it != m_curves.end(); ++it )
282 {
283 float l = 0.0f;
284 if( ITriDurationPtr f = BlueCastPtr( *it ) )
285 {
286 l = f->Length();
287 }
288 else if( ITriCurveLengthPtr f = BlueCastPtr( *it ) )
289 {
290 l = f->Length();
291 }
292
293 if( l > maxDuration )
294 {
295 maxDuration = l;
296 }
297 }
298
299 return maxDuration;
300}
301
302float TriCurveSet::GetRangeDuration( const char* rangeName ) const
303{

Callers 11

GetCurveSetDurationMethod · 0.80
GetCurveSetDurationMethod · 0.80
GetCurveSetDurationMethod · 0.80
GetCurveSetDurationMethod · 0.80
GetCurveDurationMethod · 0.80
GetCurveDurationMethod · 0.80
GetCurveDurationMethod · 0.80
GetCurveSetDurationMethod · 0.80
GetCurveSetDurationMethod · 0.80
GetCurveSetDurationMethod · 0.80
GetCurveSetDurationMethod · 0.80

Calls 3

beginMethod · 0.45
endMethod · 0.45
LengthMethod · 0.45

Tested by

no test coverage detected