refactor(Core/Misc): atan2() to std::atan2() (#9793)

- prefer std functions over C functions
This commit is contained in:
Kitzunu
2022-01-03 17:24:06 +01:00
committed by GitHub
parent 2f7ccbe92f
commit 317e793b12
5 changed files with 7 additions and 7 deletions

View File

@@ -217,7 +217,7 @@ void MotionTransport::Update(uint32 diff)
G3D::Vector3 pos, dir;
_currentFrame->Spline->evaluate_percent(_currentFrame->Index, t, pos);
_currentFrame->Spline->evaluate_derivative(_currentFrame->Index, t, dir);
UpdatePosition(pos.x, pos.y, pos.z, NormalizeOrientation(atan2(dir.y, dir.x) + M_PI));
UpdatePosition(pos.x, pos.y, pos.z, NormalizeOrientation(std::atan2(dir.y, dir.x) + M_PI));
}
else
{