MCPcopy Create free account
hub / github.com/comaps/comaps / GetMaxDuration

Method GetMaxDuration

libs/drape_frontend/animation/animation.cpp:86–97  ·  view source on GitHub ↗

static

Source from the content-addressed store, hash-verified

84
85// static
86bool Animation::GetMaxDuration(Interpolator const & interpolator, double & maxDuration)
87{
88 if (interpolator.IsActive())
89 {
90 double const duration = interpolator.GetMaxDuration();
91 if (duration >= 0.0)
92 maxDuration = maxDuration >= 0.0 ? std::max(duration, maxDuration) : duration;
93 else
94 return false;
95 }
96 return true;
97}
98
99std::string DebugPrint(Animation::Type const & type)
100{

Callers 1

CreateAnimMethod · 0.45

Calls 1

IsActiveMethod · 0.45

Tested by

no test coverage detected