Browse Source

math.h -> cmath

Darryl Pogue 11 years ago
parent
commit
29bc092cff
  1. 2
      Sources/Plasma/CoreLib/hsGeometry3.cpp
  2. 2
      Sources/Plasma/CoreLib/hsMatrix44.cpp
  3. 2
      Sources/Plasma/FeatureLib/pfAnimation/pfObjectFlocker.cpp
  4. 4
      Sources/Plasma/FeatureLib/pfAnimation/plStereizer.cpp
  5. 2
      Sources/Plasma/PubUtilLib/plAudioCore/plOGGCodec.cpp
  6. 2
      Sources/Plasma/PubUtilLib/plGImage/plMipmap.cpp
  7. 2
      Sources/Plasma/PubUtilLib/plGLight/plPerspDirSlave.cpp
  8. 2
      Sources/Plasma/PubUtilLib/plGLight/plShadowSlave.cpp
  9. 2
      Sources/Plasma/PubUtilLib/plInterp/hsKeys.cpp
  10. 2
      Sources/Plasma/PubUtilLib/plInterp/plAnimPath.cpp
  11. 2
      Sources/Plasma/PubUtilLib/plMath/plAvg.cpp
  12. 4
      Sources/Plasma/PubUtilLib/plMath/plTriUtils.cpp
  13. 2
      Sources/Plasma/PubUtilLib/plPipeline/plFogEnvironment.cpp
  14. 2
      Sources/Plasma/PubUtilLib/plPipeline/plVertCoder.cpp
  15. 4
      Sources/Plasma/PubUtilLib/plSurface/hsGMaterial.cpp
  16. 2
      Sources/Plasma/PubUtilLib/plTransform/hsEuler.cpp
  17. 2
      Sources/Plasma/PubUtilLib/plTransform/mat_decomp.cpp
  18. 2
      Sources/Tools/MaxConvert/Pch.h
  19. 2
      Sources/Tools/MaxConvert/hsControlConverter.cpp
  20. 2
      Sources/Tools/MaxConvert/hsConverterUtils.cpp
  21. 2
      Sources/Tools/MaxConvert/hsMaterialConverter.cpp

2
Sources/Plasma/CoreLib/hsGeometry3.cpp

@ -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)
{

2
Sources/Plasma/CoreLib/hsMatrix44.cpp

@ -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

2
Sources/Plasma/FeatureLib/pfAnimation/pfObjectFlocker.cpp

@ -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"

4
Sources/Plasma/FeatureLib/pfAnimation/plStereizer.cpp

@ -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;
}
}

2
Sources/Plasma/PubUtilLib/plAudioCore/plOGGCodec.cpp

@ -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>

2
Sources/Plasma/PubUtilLib/plGImage/plMipmap.cpp

@ -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);

2
Sources/Plasma/PubUtilLib/plGLight/plPerspDirSlave.cpp

@ -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

2
Sources/Plasma/PubUtilLib/plGLight/plShadowSlave.cpp

@ -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

2
Sources/Plasma/PubUtilLib/plInterp/hsKeys.cpp

@ -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;

2
Sources/Plasma/PubUtilLib/plInterp/plAnimPath.cpp

@ -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;

2
Sources/Plasma/PubUtilLib/plMath/plAvg.cpp

@ -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>;

4
Sources/Plasma/PubUtilLib/plMath/plTriUtils.cpp

@ -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);
}
}

2
Sources/Plasma/PubUtilLib/plPipeline/plFogEnvironment.cpp

@ -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 ///////////////////////////////////////////////

2
Sources/Plasma/PubUtilLib/plPipeline/plVertCoder.cpp

@ -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);

4
Sources/Plasma/PubUtilLib/plSurface/hsGMaterial.cpp

@ -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);
}
}

2
Sources/Plasma/PubUtilLib/plTransform/hsEuler.cpp

@ -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"

2
Sources/Plasma/PubUtilLib/plTransform/mat_decomp.cpp

@ -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 *******/

2
Sources/Tools/MaxConvert/Pch.h

@ -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>

2
Sources/Tools/MaxConvert/hsControlConverter.cpp

@ -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>

2
Sources/Tools/MaxConvert/hsConverterUtils.cpp

@ -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>

2
Sources/Tools/MaxConvert/hsMaterialConverter.cpp

@ -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>

Loading…
Cancel
Save