summaryrefslogtreecommitdiff
path: root/3dmath.h
diff options
context:
space:
mode:
authorMorten Hustveit <morten.hustveit@gmail.com>2014-12-02 14:54:28 -0500
committerMorten Hustveit <morten.hustveit@gmail.com>2014-12-02 14:54:28 -0500
commitf4afeeef49b12fffb4ce9e5860c0a79b6809d74b (patch)
tree5133897cee35498b6aa71dbc823204d25216349d /3dmath.h
parent3d422f2b3d311f1be3658ff1f44d818a99561a66 (diff)
3dmath: Use const-correct function declarations
Diffstat (limited to '3dmath.h')
-rw-r--r--3dmath.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/3dmath.h b/3dmath.h
index 4135f3b..0b6e035 100644
--- a/3dmath.h
+++ b/3dmath.h
@@ -1,3 +1,3 @@
-float dot(float x[3], float y[3]);
+float dot(const float x[3], const float y[3]);
void normalize(float x[3]);
-float sphere_intersect(float y[3], float r[3], float s[3], float d[3], float c[3], float R);
+float sphere_intersect(float y[3], float r[3], const float s[3], const float d[3], const float c[3], float R);