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

Method GetCurveSetDuration

trinity/Eve/EveTransform.cpp:465–477  ·  view source on GitHub ↗

-------------------------------------------------------------------------------- Description: Get maximum curve set duration for the provided name. --------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

463// Get maximum curve set duration for the provided name.
464// --------------------------------------------------------------------------------
465float EveTransform::GetCurveSetDuration( const std::string& name ) const
466{
467 float maxDuration = 0.f;
468 for( auto it = m_curveSets.begin(); it != m_curveSets.end(); it++ )
469 {
470 if( ( *it )->GetName() == name )
471 {
472 maxDuration = max( maxDuration, ( *it )->GetMaxCurveDuration() );
473 }
474 }
475
476 return maxDuration;
477}
478
479// --------------------------------------------------------------------------------
480float EveTransform::GetRangeDuration( const std::string& name, const std::string& rangeName ) const

Callers 1

CurveSetTimeFunction · 0.45

Calls 4

GetMaxCurveDurationMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
GetNameMethod · 0.45

Tested by

no test coverage detected