summaryrefslogtreecommitdiffstats
path: root/Smoke/funcs.c
diff options
context:
space:
mode:
authorWilrik de Loose <wilrik@wilrik.nl>2007-12-20 12:33:17 (GMT)
committerWilrik de Loose <wilrik@wilrik.nl>2007-12-20 12:33:17 (GMT)
commit41c695d027b1b1d64015a62c58ad6cf00ac49833 (patch)
tree11e614917caf61f2a5957b6f87fb91a728923c21 /Smoke/funcs.c
parent6738787ce32ab3895241efed640cb95cdb3d1e32 (diff)
download2iv35-41c695d027b1b1d64015a62c58ad6cf00ac49833.zip
2iv35-41c695d027b1b1d64015a62c58ad6cf00ac49833.tar.gz
2iv35-41c695d027b1b1d64015a62c58ad6cf00ac49833.tar.bz2
Diffstat (limited to 'Smoke/funcs.c')
-rw-r--r--Smoke/funcs.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/Smoke/funcs.c b/Smoke/funcs.c
index e760c72..a991e42 100644
--- a/Smoke/funcs.c
+++ b/Smoke/funcs.c
@@ -23,7 +23,12 @@ float quake_root(float number)
return number * y;
}
-float vec_len(float x, float y)
+float vec_len2f(float x, float y)
{
return (quake_root((x * x) + (y * y)));
}
+
+float vec_len3f(float x, float y, float z)
+{
+ return (quake_root((x * x) + (y * y) + (z * z)));
+}