summaryrefslogtreecommitdiffstats
path: root/math.cginc
diff options
context:
space:
mode:
Diffstat (limited to 'math.cginc')
-rw-r--r--math.cginc15
1 files changed, 15 insertions, 0 deletions
diff --git a/math.cginc b/math.cginc
new file mode 100644
index 0000000..a12040a
--- /dev/null
+++ b/math.cginc
@@ -0,0 +1,15 @@
+#ifndef __MATH_INC
+#define __MATH_INC
+
+#define PI 3.14159265358979323846264
+#define TAU (2 * PI)
+
+float pow5(float x)
+{
+ float tmp = x * x;
+ return (tmp * tmp) * x;
+}
+
+#endif // __MATH_INC
+
+