aboutsummaryrefslogtreecommitdiff
path: root/redist
diff options
context:
space:
mode:
authormwturvey <michael.w.turvey@intel.com>2017-03-27 14:20:29 -0700
committermwturvey <michael.w.turvey@intel.com>2017-03-27 14:20:29 -0700
commite5c15af3af93356bb056624726e0b6068354690f (patch)
tree401856cd25ccca176a7a6f4b21ce641ec1dad34a /redist
parent9ead7de95621f1d7d59fed26fc7431344fdd9db4 (diff)
downloadlibsurvive-e5c15af3af93356bb056624726e0b6068354690f.tar.gz
libsurvive-e5c15af3af93356bb056624726e0b6068354690f.tar.bz2
Getting very close
Diffstat (limited to 'redist')
-rw-r--r--redist/linmath.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/redist/linmath.c b/redist/linmath.c
index 0e06156..69a70f6 100644
--- a/redist/linmath.c
+++ b/redist/linmath.c
@@ -85,6 +85,9 @@ FLT anglebetween3d( FLT * a, FLT * b )
// algorithm found here: http://inside.mines.edu/fs_home/gmurray/ArbitraryAxisRotation/
void rotatearoundaxis(FLT *outvec3, FLT *invec3, FLT *axis, FLT angle)
{
+ // TODO: this really should be external.
+ normalize3d(axis, axis);
+
FLT s = FLT_SIN(angle);
FLT c = FLT_COS(angle);