From caa3f1f1c57b7876156eedbc3738e90765f72d14 Mon Sep 17 00:00:00 2001 From: Justin Berger Date: Sun, 1 Jul 2018 05:26:29 +0000 Subject: Added kabsch / test for kabsch --- redist/linmath.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'redist/linmath.h') 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 { -- cgit v1.2.3