diff options
author | mwturvey <michael.w.turvey@intel.com> | 2017-02-14 17:08:56 -0700 |
---|---|---|
committer | mwturvey <michael.w.turvey@intel.com> | 2017-02-14 17:08:56 -0700 |
commit | 55a1f849d77d34f08a555e90120959b3ce9880ea (patch) | |
tree | f2f50f1533bcd81e3574078ef49a9b0ab763a1c1 /redist | |
parent | c4e11bc415aa17845bad53454e89e7e0703b8c73 (diff) | |
download | libsurvive-55a1f849d77d34f08a555e90120959b3ce9880ea.tar.gz libsurvive-55a1f849d77d34f08a555e90120959b3ce9880ea.tar.bz2 |
Fix bug in lib math angle calculation
Diffstat (limited to 'redist')
-rw-r--r-- | redist/linmath.c | 2 |
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); |