summaryrefslogtreecommitdiff
path: root/src/Z2AudioLib/Z2Calc.cpp
diff options
context:
space:
mode:
authorkipcode66 <kipcode66@gmail.com>2026-01-05 06:50:45 -0500
committerGitHub <noreply@github.com>2026-01-05 03:50:45 -0800
commit1d2a0d956851e10549c56be039fd42f6f0937802 (patch)
treea517d5e5f3a449599fa47fe59903a99d9ce49833 /src/Z2AudioLib/Z2Calc.cpp
parentb897ed3ec9b63001ce74411569a087cacc4f23d9 (diff)
Add guards around std library headers (#3013)
* Last fix for standard compiler error * adding define guards around headers * rename cmath.h and climits.h to cmath and climits respectively * renaming cstdarg.h to cstdarg * renaming cstdlib.h to cstdlib * renaming cstring.h to cstring * renaming cstdio.h to cstdio * renaming cmath locale ctype * renaming stdarg string and va_list * renaming cstddef * renaming stdio stddef stdlib * renaming algorithm, functional, iterator, memory, and utility * renaming bitset, cstdint, limits, and stdint * renaming new and type_traits * update quote includes for standard library headers to angle bracket includes
Diffstat (limited to 'src/Z2AudioLib/Z2Calc.cpp')
-rw-r--r--src/Z2AudioLib/Z2Calc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Z2AudioLib/Z2Calc.cpp b/src/Z2AudioLib/Z2Calc.cpp
index 91eccdcfb6..3f0ab802e0 100644
--- a/src/Z2AudioLib/Z2Calc.cpp
+++ b/src/Z2AudioLib/Z2Calc.cpp
@@ -1,6 +1,6 @@
#include "Z2AudioLib/Z2Calc.h"
#include "JSystem/JMath/random.h"
-#include <math.h>
+#include <math>
f32 Z2Calc::linearTransform(f32 inValue, f32 inMin, f32 inMax, f32 outMin, f32 outMax, bool noClamp) {
f32 transformed = outMin + ((inValue - inMin) * ((outMax - outMin) / (inMax - inMin)));