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

@@ -47,7 +47,7 @@ namespace Movement
if (splineflags.final_angle)
c.orientation = facing.angle;
else if (splineflags.final_point)
c.orientation = atan2(facing.f.y - c.y, facing.f.x - c.x);
c.orientation = std::atan2(facing.f.y - c.y, facing.f.x - c.x);
//nothing to do for MoveSplineFlag::Final_Target flag
}
else
@@ -56,7 +56,7 @@ namespace Movement
{
Vector3 hermite;
spline.evaluate_derivative(point_Idx, u, hermite);
c.orientation = atan2(hermite.y, hermite.x);
c.orientation = std::atan2(hermite.y, hermite.x);
}
if (splineflags.orientationInversed)