1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-17 18:59:09 +00:00

math.h -> cmath

This commit is contained in:
Darryl Pogue
2013-01-28 23:23:07 -08:00
parent b01aab4a39
commit 29bc092cff
21 changed files with 24 additions and 24 deletions

View File

@ -41,7 +41,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
*==LICENSE==*/
#include "hsGeometry3.h"
#include "hsStream.h"
#include <math.h>
#include <cmath>
hsVector3 operator%(const hsVector3& t, const hsVector3& s)
{

View File

@ -45,7 +45,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "hsQuat.h"
#include "hsMatrix44.h"
#include "hsStream.h"
#include <math.h>
#include <cmath>
#ifdef HS_SIMD_INCLUDE
# include HS_SIMD_INCLUDE

View File

@ -56,7 +56,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
//#include "../plPipeline/plDebugGeometry.h"
#include <math.h>
#include <cmath>
#include <algorithm>
#include "pfObjectFlocker.h"

View File

@ -41,7 +41,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
*==LICENSE==*/
#include <math.h>
#include <cmath>
#include "HeadSpin.h"
@ -307,4 +307,4 @@ bool plStereizer::CheckForMaster()
}
}
return false;
}
}

View File

@ -50,7 +50,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
//////////////////////////////////////////////////////////////////////////////
#include <math.h>
#include <cmath>
#include <vorbis/codec.h>
#include <vorbis/vorbisfile.h>

View File

@ -60,7 +60,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "plPipeline/hsGDeviceRef.h"
#include "plProfile.h"
#include "plJPEG.h"
#include <math.h>
#include <cmath>
plProfile_CreateMemCounter("Mipmaps", "Memory", MemMipmaps);

View File

@ -48,7 +48,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "plPerspDirSlave.h"
#include <float.h>
#include <math.h>
#include <cmath>
#ifdef HS_BUILD_FOR_WIN32
#define isnan _isnan

View File

@ -46,7 +46,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "plTweak.h"
#include <float.h>
#include <math.h>
#include <cmath>
#ifdef HS_BUILD_FOR_WIN32
#define isnan _isnan

View File

@ -41,7 +41,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
*==LICENSE==*/
#include "hsKeys.h"
#include "hsStream.h"
#include <math.h>
#include <cmath>
const int hsKeyFrame::kMaxFrameNumber = 65535;

View File

@ -45,7 +45,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "plController.h"
#include "hsFastMath.h"
#include "hsResMgr.h"
#include <math.h>
#include <cmath>
const float kSmallDelTime = 1.e-2f;
const float kInvSmallDelTime = 1.f / kSmallDelTime;

View File

@ -42,7 +42,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "HeadSpin.h"
#include "plAvg.h"
#include <math.h>
#include <cmath>
template class TimeBasedAvgRing<float>;
template class TimeBasedAvgRing<double>;

View File

@ -42,7 +42,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "HeadSpin.h"
#include "hsGeometry3.h"
#include <math.h>
#include <cmath>
#include "plTriUtils.h"
static const float kAlmostZero = 1.e-5f;
@ -328,4 +328,4 @@ bool plTriUtils::ProjectOntoPlaneAlongVector(const hsPoint3& p0, const hsPoint3&
float dist = norm.InnerProduct(p0 - p);
return ProjectOntoPlaneAlongVector(norm, dist, vec, p);
}
}

View File

@ -47,7 +47,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "plFogEnvironment.h"
#include <math.h>
#include <cmath>
#include "plTweak.h"
//// Constructors & Destructor ///////////////////////////////////////////////

View File

@ -44,7 +44,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "plVertCoder.h"
#include "hsStream.h"
#include <math.h>
#include <cmath>
#include "plGBufferGroup.h"
const float kPosQuantum = 1.f / float(1 << 10);

View File

@ -41,7 +41,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
*==LICENSE==*/
#include "hsGMaterial.h"
#include <math.h>
#include <cmath>
#include "HeadSpin.h"
#include "hsMemory.h"
@ -334,4 +334,4 @@ bool hsGMaterial::MsgReceive(plMessage* msg)
return true;
}
return plSynchedObject::MsgReceive(msg);
}
}

View File

@ -46,7 +46,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
//////////////////////////////////////////////////////////////////////////
//
#include <float.h> // for FLT_EPSILON
#include <math.h>
#include <cmath>
#include "hsEuler.h"
#include "hsQuat.h"
#include "hsMatrix44.h"

View File

@ -44,7 +44,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
//
// Gems IV. Polar Decomp
//
#include <math.h>
#include <cmath>
#include "mat_decomp.h"
/******* Matrix Preliminaries *******/

View File

@ -51,7 +51,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
// Standard Library
#include <algorithm>
#include <float.h>
#include <math.h>
#include <cmath>
#include <cstring>
#include <vector>

View File

@ -45,7 +45,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "hsTemplates.h"
#include "hsWindows.h"
#include <commdlg.h>
#include <math.h>
#include <cmath>
#include <stdmat.h>
#include <bmmlib.h>
#include <istdplug.h>

View File

@ -45,7 +45,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "hsHashTable.h"
#include "hsStringTokenizer.h"
#include "hsResMgr.h"
#include <math.h>
#include <cmath>
#include <max.h>
#include <stdmat.h>

View File

@ -49,7 +49,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "MaxComponent/plComponent.h"
#include <math.h>
#include <cmath>
#include <float.h>
#include <commdlg.h>