X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FGameTick.cpp;h=7d66b43a1271e173a759fd603fe9d3d54e367215;hb=5b566d01a77224e445ebb683184a1c59830a10b5;hp=f4b9a7ccbb68c5bd5e8c4d696481b4c95e3816fb;hpb=635516adc7915de50d38cd01345871a07a24c390;p=lugaru.git diff --git a/Source/GameTick.cpp b/Source/GameTick.cpp index f4b9a7c..7d66b43 100644 --- a/Source/GameTick.cpp +++ b/Source/GameTick.cpp @@ -176,7 +176,7 @@ STATIC_ASSERT (rabbittype == 0 && wolftype == 1) // utility functions // TODO: this is slightly incorrect -inline float roughDirection(XYZ vec) +float roughDirection(XYZ vec) { Normalise(&vec); float angle = -asin(-vec.x) * 180 / M_PI; @@ -184,7 +184,7 @@ inline float roughDirection(XYZ vec) angle = 180 - angle; return angle; } -inline float roughDirectionTo(XYZ start, XYZ end) +float roughDirectionTo(XYZ start, XYZ end) { return roughDirection(end - start); } @@ -193,11 +193,11 @@ inline float pitchOf(XYZ vec) Normalise(&vec); return -asin(vec.y) * 180 / M_PI; } -inline float pitchTo(XYZ start, XYZ end) +float pitchTo(XYZ start, XYZ end) { return pitchOf(end - start); } -inline float sq(float n) +float sq(float n) { return n * n; }