summaryrefslogtreecommitdiff
path: root/src/utils/mathutils.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/mathutils.h')
-rw-r--r--src/utils/mathutils.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/utils/mathutils.h b/src/utils/mathutils.h
index 3d90b022..31f48805 100644
--- a/src/utils/mathutils.h
+++ b/src/utils/mathutils.h
@@ -27,8 +27,16 @@ namespace utils
{
namespace math
{
+ /**
+ * A very fast function to calculate the approximate inverse square
+ * root of a floating point value.
+ */
float fastInvSqrt(float x);
+ /**
+ * A helper function that uses the fastInvSqrt for getting the
+ * normal squareroot.
+ */
float fastSqrt(float x);
float cachedSin(int angle);