summaryrefslogtreecommitdiffstats
path: root/src/math
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2020-07-22 23:31:06 +0200
committereray orçunus <erayorcunus@gmail.com>2020-07-22 23:31:06 +0200
commit7e32c603fc0f9a7ec0f3fc1ab224b3b20c769eaf (patch)
tree9126974a1c8bfa8ac8f9f3879fb63edfe7320238 /src/math
parentMerge pull request #659 from erorcun/master (diff)
downloadre3-7e32c603fc0f9a7ec0f3fc1ab224b3b20c769eaf.tar
re3-7e32c603fc0f9a7ec0f3fc1ab224b3b20c769eaf.tar.gz
re3-7e32c603fc0f9a7ec0f3fc1ab224b3b20c769eaf.tar.bz2
re3-7e32c603fc0f9a7ec0f3fc1ab224b3b20c769eaf.tar.lz
re3-7e32c603fc0f9a7ec0f3fc1ab224b3b20c769eaf.tar.xz
re3-7e32c603fc0f9a7ec0f3fc1ab224b3b20c769eaf.tar.zst
re3-7e32c603fc0f9a7ec0f3fc1ab224b3b20c769eaf.zip
Diffstat (limited to 'src/math')
-rw-r--r--src/math/maths.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/math/maths.h b/src/math/maths.h
index 51b0ef10..8d68bf64 100644
--- a/src/math/maths.h
+++ b/src/math/maths.h
@@ -15,3 +15,5 @@ inline float Sqrt(float x) { return sqrtf(x); }
inline float RecipSqrt(float x, float y) { return x/Sqrt(y); }
inline float RecipSqrt(float x) { return RecipSqrt(1.0f, x); }
inline float Pow(float x, float y) { return powf(x, y); }
+inline float Floor(float x) { return floorf(x); }
+inline float Ceil(float x) { return ceilf(x); }