diff options
author | mwturvey <michael.w.turvey@intel.com> | 2017-02-07 17:43:12 -0700 |
---|---|---|
committer | mwturvey <michael.w.turvey@intel.com> | 2017-02-07 17:43:12 -0700 |
commit | 0586f134e02938e1a9dd86ad92e41c2b2443fee0 (patch) | |
tree | cb40d2ddad665fcb2f258af46e496d814d6a7abf /tools/lighthousefind_tori/torus_localizer.c | |
parent | a4cf0b14abb17c313243d0fb84555aec2cef61a0 (diff) | |
download | libsurvive-0586f134e02938e1a9dd86ad92e41c2b2443fee0.tar.gz libsurvive-0586f134e02938e1a9dd86ad92e41c2b2443fee0.tar.bz2 |
Replacing rotation matrix (wip)
Diffstat (limited to 'tools/lighthousefind_tori/torus_localizer.c')
-rw-r--r-- | tools/lighthousefind_tori/torus_localizer.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/lighthousefind_tori/torus_localizer.c b/tools/lighthousefind_tori/torus_localizer.c index f3040cd..43dd9a2 100644 --- a/tools/lighthousefind_tori/torus_localizer.c +++ b/tools/lighthousefind_tori/torus_localizer.c @@ -25,6 +25,20 @@ Matrix3x3 GetRotationMatrixForTorus(Point a, Point b) rotation_between_vecs_to_mat3(result.val, v1, v2); + FLT result2[9]; + + rotation_between_vecs_to_m3(result2, v1, v2); + + result.val[0][0] = result2[0]; + result.val[0][1] = result2[1]; + result.val[0][2] = result2[2]; + result.val[1][0] = result2[3]; + result.val[1][1] = result2[4]; + result.val[1][2] = result2[5]; + result.val[2][0] = result2[6]; + result.val[2][1] = result2[7]; + result.val[2][2] = result2[8]; + return result; } |