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

Function InterpolateAngle

libs/drape_frontend/animation/interpolations.cpp:19–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17}
18
19double InterpolateAngle(double startAngle, double endAngle, double t)
20{
21 startAngle = ang::AngleIn2PI(startAngle);
22 endAngle = ang::AngleIn2PI(endAngle);
23 return startAngle + ang::GetShortestDistance(startAngle, endAngle) * t;
24}
25
26} // namespace df

Callers

nothing calls this directly

Calls 2

AngleIn2PIFunction · 0.85
GetShortestDistanceFunction · 0.85

Tested by

no test coverage detected