From 55a1f849d77d34f08a555e90120959b3ce9880ea Mon Sep 17 00:00:00 2001 From: mwturvey Date: Tue, 14 Feb 2017 17:08:56 -0700 Subject: Fix bug in lib math angle calculation --- redist/linmath.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'redist') 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); -- cgit v1.2.3