aboutsummaryrefslogtreecommitdiff
path: root/redist/linmath.h
diff options
context:
space:
mode:
authorJustin Berger <jdavidberger@gmail.com>2018-07-01 05:26:29 +0000
committerJustin Berger <jdavidberger@gmail.com>2018-07-01 05:26:29 +0000
commitcaa3f1f1c57b7876156eedbc3738e90765f72d14 (patch)
tree8e1a6a6e880f4df63a2fb5281de3a978fc9e0c1e /redist/linmath.h
parent47141c873ffd3d7af62bfba40b1adbcce0df6574 (diff)
downloadlibsurvive-caa3f1f1c57b7876156eedbc3738e90765f72d14.tar.gz
libsurvive-caa3f1f1c57b7876156eedbc3738e90765f72d14.tar.bz2
Added kabsch / test for kabsch
Diffstat (limited to 'redist/linmath.h')
-rw-r--r--redist/linmath.h3
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 {