aboutsummaryrefslogtreecommitdiff
path: root/redist
diff options
context:
space:
mode:
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);