mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-26 07:06:23 +00:00
refactor(Core/Misc): abs() to std::abs() (#9789)
This commit is contained in:
@@ -24,7 +24,7 @@ BigNumber::~BigNumber()
|
||||
|
||||
void BigNumber::SetDword(int32 val)
|
||||
{
|
||||
SetDword(uint32(abs(val)));
|
||||
SetDword(uint32(std::abs(val)));
|
||||
if (val < 0)
|
||||
{
|
||||
BN_set_negative(_bn, 1);
|
||||
|
||||
@@ -42,12 +42,12 @@
|
||||
[[nodiscard]] inline float getSlopeAngle(float startX, float startY, float startZ, float destX, float destY, float destZ)
|
||||
{
|
||||
float floorDist = sqrt(pow(startY - destY, 2.0f) + pow(startX - destX, 2.0f));
|
||||
return atan(abs(destZ - startZ) / abs(floorDist));
|
||||
return atan(std::abs(destZ - startZ) / std::abs(floorDist));
|
||||
}
|
||||
|
||||
[[nodiscard]] inline float getSlopeAngleAbs(float startX, float startY, float startZ, float destX, float destY, float destZ)
|
||||
{
|
||||
return abs(getSlopeAngle(startX, startY, startZ, destX, destY, destZ));
|
||||
return std::abs(getSlopeAngle(startX, startY, startZ, destX, destY, destZ));
|
||||
}
|
||||
|
||||
[[nodiscard]] inline double getCircleAreaByRadius(double radius)
|
||||
|
||||
Reference in New Issue
Block a user