From 47141c873ffd3d7af62bfba40b1adbcce0df6574 Mon Sep 17 00:00:00 2001 From: Justin Berger Date: Sun, 1 Jul 2018 04:13:34 +0000 Subject: Finalized reading in and transforming of accel/gyro data --- redist/linmath.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'redist/linmath.h') diff --git a/redist/linmath.h b/redist/linmath.h index aff46a3..f961568 100644 --- a/redist/linmath.h +++ b/redist/linmath.h @@ -139,6 +139,12 @@ LINMATH_EXPORT void ApplyPoseToPose(LinmathPose *pout, const LinmathPose *lhs_po LINMATH_EXPORT void InvertPose(LinmathPose *poseout, const LinmathPose *pose_in); LINMATH_EXPORT void PoseToMatrix(FLT *mat44, const LinmathPose *pose_in); + +// Given num_pts in coordinate system B, and in coordinate system A, find the optimal RHS rotation +// which transforms from B to A. +// +// 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); // Matrix Stuff typedef struct { -- cgit v1.2.3