From 29bc092cfffcd44ab00bc4805b07e21065bf9854 Mon Sep 17 00:00:00 2001 From: Darryl Pogue Date: Mon, 28 Jan 2013 23:23:07 -0800 Subject: [PATCH] math.h -> cmath --- Sources/Plasma/CoreLib/hsGeometry3.cpp | 2 +- Sources/Plasma/CoreLib/hsMatrix44.cpp | 2 +- Sources/Plasma/FeatureLib/pfAnimation/pfObjectFlocker.cpp | 2 +- Sources/Plasma/FeatureLib/pfAnimation/plStereizer.cpp | 4 ++-- Sources/Plasma/PubUtilLib/plAudioCore/plOGGCodec.cpp | 2 +- Sources/Plasma/PubUtilLib/plGImage/plMipmap.cpp | 2 +- Sources/Plasma/PubUtilLib/plGLight/plPerspDirSlave.cpp | 2 +- Sources/Plasma/PubUtilLib/plGLight/plShadowSlave.cpp | 2 +- Sources/Plasma/PubUtilLib/plInterp/hsKeys.cpp | 2 +- Sources/Plasma/PubUtilLib/plInterp/plAnimPath.cpp | 2 +- Sources/Plasma/PubUtilLib/plMath/plAvg.cpp | 2 +- Sources/Plasma/PubUtilLib/plMath/plTriUtils.cpp | 4 ++-- Sources/Plasma/PubUtilLib/plPipeline/plFogEnvironment.cpp | 2 +- Sources/Plasma/PubUtilLib/plPipeline/plVertCoder.cpp | 2 +- Sources/Plasma/PubUtilLib/plSurface/hsGMaterial.cpp | 4 ++-- Sources/Plasma/PubUtilLib/plTransform/hsEuler.cpp | 2 +- Sources/Plasma/PubUtilLib/plTransform/mat_decomp.cpp | 2 +- Sources/Tools/MaxConvert/Pch.h | 2 +- Sources/Tools/MaxConvert/hsControlConverter.cpp | 2 +- Sources/Tools/MaxConvert/hsConverterUtils.cpp | 2 +- Sources/Tools/MaxConvert/hsMaterialConverter.cpp | 2 +- 21 files changed, 24 insertions(+), 24 deletions(-) diff --git a/Sources/Plasma/CoreLib/hsGeometry3.cpp b/Sources/Plasma/CoreLib/hsGeometry3.cpp index c9cbeb17..8c080962 100644 --- a/Sources/Plasma/CoreLib/hsGeometry3.cpp +++ b/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 +#include hsVector3 operator%(const hsVector3& t, const hsVector3& s) { diff --git a/Sources/Plasma/CoreLib/hsMatrix44.cpp b/Sources/Plasma/CoreLib/hsMatrix44.cpp index 679a6d6d..511ff0ad 100644 --- a/Sources/Plasma/CoreLib/hsMatrix44.cpp +++ b/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 +#include #ifdef HS_SIMD_INCLUDE # include HS_SIMD_INCLUDE diff --git a/Sources/Plasma/FeatureLib/pfAnimation/pfObjectFlocker.cpp b/Sources/Plasma/FeatureLib/pfAnimation/pfObjectFlocker.cpp index 302a919b..bff52eae 100644 --- a/Sources/Plasma/FeatureLib/pfAnimation/pfObjectFlocker.cpp +++ b/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 +#include #include #include "pfObjectFlocker.h" diff --git a/Sources/Plasma/FeatureLib/pfAnimation/plStereizer.cpp b/Sources/Plasma/FeatureLib/pfAnimation/plStereizer.cpp index 796d4036..cf6bd519 100644 --- a/Sources/Plasma/FeatureLib/pfAnimation/plStereizer.cpp +++ b/Sources/Plasma/FeatureLib/pfAnimation/plStereizer.cpp @@ -41,7 +41,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com *==LICENSE==*/ -#include +#include #include "HeadSpin.h" @@ -307,4 +307,4 @@ bool plStereizer::CheckForMaster() } } return false; -} \ No newline at end of file +} diff --git a/Sources/Plasma/PubUtilLib/plAudioCore/plOGGCodec.cpp b/Sources/Plasma/PubUtilLib/plAudioCore/plOGGCodec.cpp index 41db9c4e..1da877a0 100644 --- a/Sources/Plasma/PubUtilLib/plAudioCore/plOGGCodec.cpp +++ b/Sources/Plasma/PubUtilLib/plAudioCore/plOGGCodec.cpp @@ -50,7 +50,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com ////////////////////////////////////////////////////////////////////////////// -#include +#include #include #include diff --git a/Sources/Plasma/PubUtilLib/plGImage/plMipmap.cpp b/Sources/Plasma/PubUtilLib/plGImage/plMipmap.cpp index 7824adce..f92495c0 100644 --- a/Sources/Plasma/PubUtilLib/plGImage/plMipmap.cpp +++ b/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 +#include plProfile_CreateMemCounter("Mipmaps", "Memory", MemMipmaps); diff --git a/Sources/Plasma/PubUtilLib/plGLight/plPerspDirSlave.cpp b/Sources/Plasma/PubUtilLib/plGLight/plPerspDirSlave.cpp index 8f543ccd..fda4d392 100644 --- a/Sources/Plasma/PubUtilLib/plGLight/plPerspDirSlave.cpp +++ b/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 -#include +#include #ifdef HS_BUILD_FOR_WIN32 #define isnan _isnan diff --git a/Sources/Plasma/PubUtilLib/plGLight/plShadowSlave.cpp b/Sources/Plasma/PubUtilLib/plGLight/plShadowSlave.cpp index 61817a24..071702a7 100644 --- a/Sources/Plasma/PubUtilLib/plGLight/plShadowSlave.cpp +++ b/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 -#include +#include #ifdef HS_BUILD_FOR_WIN32 #define isnan _isnan diff --git a/Sources/Plasma/PubUtilLib/plInterp/hsKeys.cpp b/Sources/Plasma/PubUtilLib/plInterp/hsKeys.cpp index 1c3d71bf..054b48fa 100644 --- a/Sources/Plasma/PubUtilLib/plInterp/hsKeys.cpp +++ b/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 +#include const int hsKeyFrame::kMaxFrameNumber = 65535; diff --git a/Sources/Plasma/PubUtilLib/plInterp/plAnimPath.cpp b/Sources/Plasma/PubUtilLib/plInterp/plAnimPath.cpp index 6abb6d30..d921772e 100644 --- a/Sources/Plasma/PubUtilLib/plInterp/plAnimPath.cpp +++ b/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 +#include const float kSmallDelTime = 1.e-2f; const float kInvSmallDelTime = 1.f / kSmallDelTime; diff --git a/Sources/Plasma/PubUtilLib/plMath/plAvg.cpp b/Sources/Plasma/PubUtilLib/plMath/plAvg.cpp index f760f5db..58baceeb 100644 --- a/Sources/Plasma/PubUtilLib/plMath/plAvg.cpp +++ b/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 +#include template class TimeBasedAvgRing; template class TimeBasedAvgRing; diff --git a/Sources/Plasma/PubUtilLib/plMath/plTriUtils.cpp b/Sources/Plasma/PubUtilLib/plMath/plTriUtils.cpp index dbc0b25a..e9d3aadb 100644 --- a/Sources/Plasma/PubUtilLib/plMath/plTriUtils.cpp +++ b/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 +#include #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); -} \ No newline at end of file +} diff --git a/Sources/Plasma/PubUtilLib/plPipeline/plFogEnvironment.cpp b/Sources/Plasma/PubUtilLib/plPipeline/plFogEnvironment.cpp index 381349ea..39d7c987 100644 --- a/Sources/Plasma/PubUtilLib/plPipeline/plFogEnvironment.cpp +++ b/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 +#include #include "plTweak.h" //// Constructors & Destructor /////////////////////////////////////////////// diff --git a/Sources/Plasma/PubUtilLib/plPipeline/plVertCoder.cpp b/Sources/Plasma/PubUtilLib/plPipeline/plVertCoder.cpp index 7f05b975..f798a663 100644 --- a/Sources/Plasma/PubUtilLib/plPipeline/plVertCoder.cpp +++ b/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 +#include #include "plGBufferGroup.h" const float kPosQuantum = 1.f / float(1 << 10); diff --git a/Sources/Plasma/PubUtilLib/plSurface/hsGMaterial.cpp b/Sources/Plasma/PubUtilLib/plSurface/hsGMaterial.cpp index b5ef858b..d3c097de 100644 --- a/Sources/Plasma/PubUtilLib/plSurface/hsGMaterial.cpp +++ b/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 +#include #include "HeadSpin.h" #include "hsMemory.h" @@ -334,4 +334,4 @@ bool hsGMaterial::MsgReceive(plMessage* msg) return true; } return plSynchedObject::MsgReceive(msg); -} \ No newline at end of file +} diff --git a/Sources/Plasma/PubUtilLib/plTransform/hsEuler.cpp b/Sources/Plasma/PubUtilLib/plTransform/hsEuler.cpp index 5ec7471d..5849e3b2 100644 --- a/Sources/Plasma/PubUtilLib/plTransform/hsEuler.cpp +++ b/Sources/Plasma/PubUtilLib/plTransform/hsEuler.cpp @@ -46,7 +46,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com ////////////////////////////////////////////////////////////////////////// // #include // for FLT_EPSILON -#include +#include #include "hsEuler.h" #include "hsQuat.h" #include "hsMatrix44.h" diff --git a/Sources/Plasma/PubUtilLib/plTransform/mat_decomp.cpp b/Sources/Plasma/PubUtilLib/plTransform/mat_decomp.cpp index 385eceab..73c275e2 100644 --- a/Sources/Plasma/PubUtilLib/plTransform/mat_decomp.cpp +++ b/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 +#include #include "mat_decomp.h" /******* Matrix Preliminaries *******/ diff --git a/Sources/Tools/MaxConvert/Pch.h b/Sources/Tools/MaxConvert/Pch.h index 9d34ff19..6dac95f8 100644 --- a/Sources/Tools/MaxConvert/Pch.h +++ b/Sources/Tools/MaxConvert/Pch.h @@ -51,7 +51,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com // Standard Library #include #include -#include +#include #include #include diff --git a/Sources/Tools/MaxConvert/hsControlConverter.cpp b/Sources/Tools/MaxConvert/hsControlConverter.cpp index a8c81b15..7eb70351 100644 --- a/Sources/Tools/MaxConvert/hsControlConverter.cpp +++ b/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 -#include +#include #include #include #include diff --git a/Sources/Tools/MaxConvert/hsConverterUtils.cpp b/Sources/Tools/MaxConvert/hsConverterUtils.cpp index 5302a148..a0439190 100644 --- a/Sources/Tools/MaxConvert/hsConverterUtils.cpp +++ b/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 +#include #include #include diff --git a/Sources/Tools/MaxConvert/hsMaterialConverter.cpp b/Sources/Tools/MaxConvert/hsMaterialConverter.cpp index 0c7f7356..d3f59a7c 100644 --- a/Sources/Tools/MaxConvert/hsMaterialConverter.cpp +++ b/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 +#include #include #include