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

Method GetRotateDuration

libs/drape_frontend/animation/interpolators.cpp:263–269  ·  view source on GitHub ↗

static

Source from the content-addressed store, hash-verified

261
262// static
263double AngleInterpolator::GetRotateDuration(double startAngle, double endAngle)
264{
265 double constexpr kRotateDurationScalar = 0.75;
266 startAngle = ang::AngleIn2PI(startAngle);
267 endAngle = ang::AngleIn2PI(endAngle);
268 return kRotateDurationScalar * fabs(ang::GetShortestDistance(startAngle, endAngle)) / math::pi;
269}
270
271void AngleInterpolator::Advance(double elapsedSeconds)
272{

Callers

nothing calls this directly

Calls 2

AngleIn2PIFunction · 0.85
GetShortestDistanceFunction · 0.85

Tested by

no test coverage detected