diff options
author | Wilrik de Loose <wilrik@wilrik.nl> | 2007-12-20 12:33:17 (GMT) |
---|---|---|
committer | Wilrik de Loose <wilrik@wilrik.nl> | 2007-12-20 12:33:17 (GMT) |
commit | 41c695d027b1b1d64015a62c58ad6cf00ac49833 (patch) | |
tree | 11e614917caf61f2a5957b6f87fb91a728923c21 /Smoke/funcs.c | |
parent | 6738787ce32ab3895241efed640cb95cdb3d1e32 (diff) | |
download | 2iv35-41c695d027b1b1d64015a62c58ad6cf00ac49833.zip 2iv35-41c695d027b1b1d64015a62c58ad6cf00ac49833.tar.gz 2iv35-41c695d027b1b1d64015a62c58ad6cf00ac49833.tar.bz2 |
Diffstat (limited to 'Smoke/funcs.c')
-rw-r--r-- | Smoke/funcs.c | 7 |
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)));
+}
|