aboutsummaryrefslogtreecommitdiff
path: root/redist
diff options
context:
space:
mode:
Diffstat (limited to 'redist')
-rw-r--r--redist/linmath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/redist/linmath.c b/redist/linmath.c
index d5d54e3..157141f 100644
--- a/redist/linmath.c
+++ b/redist/linmath.c
@@ -75,7 +75,7 @@ FLT anglebetween3d( FLT * a, FLT * b )
FLT bn[3];
normalize3d( an, a );
normalize3d( bn, b );
- FLT dot = dot3d( a, b );
+ FLT dot = dot3d(an, bn);
if( dot < -0.9999999 ) return LINMATHPI;
if( dot > 0.9999999 ) return 0;
return FLT_ACOS(dot);