static
| 261 | |
| 262 | // static |
| 263 | double 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 | |
| 271 | void AngleInterpolator::Advance(double elapsedSeconds) |
| 272 | { |
nothing calls this directly
no test coverage detected