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

Method GetMinDuration

libs/drape_frontend/animation/animation.cpp:72–83  ·  view source on GitHub ↗

static

Source from the content-addressed store, hash-verified

70
71// static
72bool Animation::GetMinDuration(Interpolator const & interpolator, double & minDuration)
73{
74 if (interpolator.IsActive())
75 {
76 double const duration = interpolator.GetMinDuration();
77 if (duration >= 0.0)
78 minDuration = minDuration >= 0.0 ? std::min(duration, minDuration) : duration;
79 else
80 return false;
81 }
82 return true;
83}
84
85// static
86bool Animation::GetMaxDuration(Interpolator const & interpolator, double & maxDuration)

Callers 1

CreateAnimMethod · 0.45

Calls 1

IsActiveMethod · 0.45

Tested by

no test coverage detected