diff options
author | Justin Berger <jdavidberger@gmail.com> | 2018-07-01 05:26:29 +0000 |
---|---|---|
committer | Justin Berger <jdavidberger@gmail.com> | 2018-07-01 05:26:29 +0000 |
commit | caa3f1f1c57b7876156eedbc3738e90765f72d14 (patch) | |
tree | 8e1a6a6e880f4df63a2fb5281de3a978fc9e0c1e /redist/linmath.h | |
parent | 47141c873ffd3d7af62bfba40b1adbcce0df6574 (diff) | |
download | libsurvive-caa3f1f1c57b7876156eedbc3738e90765f72d14.tar.gz libsurvive-caa3f1f1c57b7876156eedbc3738e90765f72d14.tar.bz2 |
Added kabsch / test for kabsch
Diffstat (limited to 'redist/linmath.h')
-rw-r--r-- | redist/linmath.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/redist/linmath.h b/redist/linmath.h index f961568..188be99 100644 --- a/redist/linmath.h +++ b/redist/linmath.h @@ -145,6 +145,9 @@ LINMATH_EXPORT void PoseToMatrix(FLT *mat44, const LinmathPose *pose_in); // // This assumes that the space A and B share an origin. LINMATH_EXPORT void KabschCentered(LinmathQuat B2Atx, const FLT *ptsA, const FLT *ptsB, int num_pts); + +// Same as above except it solves for the center for you +LINMATH_EXPORT void Kabsch(LinmathPose *B2Atx, const FLT *ptsA, const FLT *ptsB, int num_pts); // Matrix Stuff typedef struct { |