diff options
author | ultramn <dchapm2@umbc.edu> | 2017-03-08 21:03:46 -0800 |
---|---|---|
committer | ultramn <dchapm2@umbc.edu> | 2017-03-08 21:03:46 -0800 |
commit | 91598e1806efce519d76c667954fd4c8da74e82e (patch) | |
tree | cd68d7b3f20b3ca09881b418f92cc06e65d906c6 /redist/linmath.c | |
parent | 3fa72f4b765457ce369d1aa1495dc36c90a94ebf (diff) | |
parent | 5629fd458d1de11f604248422473291e434c289f (diff) | |
download | libsurvive-91598e1806efce519d76c667954fd4c8da74e82e.tar.gz libsurvive-91598e1806efce519d76c667954fd4c8da74e82e.tar.bz2 |
Merge branch 'master' of https://github.com/cnlohr/libsurvive
Diffstat (limited to 'redist/linmath.c')
-rw-r--r-- | redist/linmath.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/redist/linmath.c b/redist/linmath.c index 157141f..1c5c25b 100644 --- a/redist/linmath.c +++ b/redist/linmath.c @@ -93,11 +93,6 @@ void quatsetnone(FLT * q) q[0] = 1; q[1] = 0; q[2] = 0; q[3] = 0; } -void quatsetidentity(FLT * q) -{ - q[0] = 1; q[1] = 0; q[2] = 0; q[3] = 1; -} - void quatcopy(FLT * qout, const FLT * qin) { qout[0] = qin[0]; @@ -447,7 +442,7 @@ void quatfrom2vectors(FLT *q, const FLT *src, const FLT *dest) // If dot == 1, vectors are the same if (d >= 1.0f) { - quatsetidentity(q); + quatsetnone(q); return; } if (d < (1e-6f - 1.0f)) |