summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorRay <[email protected]>2022-06-14 20:53:35 +0200
committerRay <[email protected]>2022-06-14 20:53:35 +0200
commit377dcef9f453d9f1d3a610cb0ddbe6f16996f592 (patch)
treec4aa6f1465f50f9b38f0ee4bf66c9403ab4667d0 /src
parent81157e4e72613b09cfde8aee925cd297d8b6cce6 (diff)
downloadraylib-377dcef9f453d9f1d3a610cb0ddbe6f16996f592.tar.gz
raylib-377dcef9f453d9f1d3a610cb0ddbe6f16996f592.zip
Revert "add wrap function (#2521)"
This reverts commit 81157e4e72613b09cfde8aee925cd297d8b6cce6.
Diffstat (limited to 'src')
-rw-r--r--src/raymath.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/raymath.h b/src/raymath.h
index 35cd5e86..abe43545 100644
--- a/src/raymath.h
+++ b/src/raymath.h
@@ -158,7 +158,7 @@ typedef struct float16 {
float v[16];
} float16;
-#include <math.h> // Required for: sinf(), cosf(), tan(), atan2f(), sqrtf(), fmodf(), fminf(), fmaxf(), fabs()
+#include <math.h> // Required for: sinf(), cosf(), tan(), atan2f(), sqrtf(), fminf(), fmaxf(), fabs()
//----------------------------------------------------------------------------------
// Module Functions Definition - Utils math
@@ -198,14 +198,6 @@ RMAPI float Remap(float value, float inputStart, float inputEnd, float outputSta
return result;
}
-// Wrap input value from min to max
-RMAPI float Wrap(float value, float min, float max)
-{
- float result = min + fmodf(value - min, max - min);
-
- return result;
-}
-
// Check whether two given floats are almost equal
RMAPI int FloatEquals(float x, float y)
{