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

@@ -146,7 +146,7 @@ void TransportMgr::GeneratePath(GameObjectTemplate const* goInfo, TransportTempl
KeyFrame k(node_i);
G3D::Vector3 h;
orientationSpline.evaluate_derivative(i + 1, 0.0f, h);
k.InitialOrientation = Position::NormalizeOrientation(atan2(h.y, h.x) + M_PI);
k.InitialOrientation = Position::NormalizeOrientation(std::atan2(h.y, h.x) + M_PI);
keyFrames.push_back(k);
splinePath.push_back(G3D::Vector3(node_i->x, node_i->y, node_i->z));