aboutsummaryrefslogtreecommitdiff
path: root/redist/linmath.c
diff options
context:
space:
mode:
authorcnlohr <lohr85@gmail.com>2017-03-12 03:29:24 -0400
committercnlohr <lohr85@gmail.com>2017-03-12 03:29:24 -0400
commitb754712675b5d644ae950006afe0d1ceba0e1899 (patch)
tree29de3de4f0265451f6bb88b1979052333320b5c7 /redist/linmath.c
parent2231abd24eabe35b37a7a293ecdd48e370373a5a (diff)
downloadlibsurvive-b754712675b5d644ae950006afe0d1ceba0e1899.tar.gz
libsurvive-b754712675b5d644ae950006afe0d1ceba0e1899.tar.bz2
update with another test.
Diffstat (limited to 'redist/linmath.c')
-rw-r--r--redist/linmath.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/redist/linmath.c b/redist/linmath.c
index 37d8e7a..41fa18f 100644
--- a/redist/linmath.c
+++ b/redist/linmath.c
@@ -516,3 +516,27 @@ void matrix44copy(FLT * mout, const FLT * minm )
memcpy( mout, minm, sizeof( FLT ) * 16 );
}
+void matrix44transpose(FLT * mout, const FLT * minm )
+{
+ mout[0] = minm[0];
+ mout[1] = minm[4];
+ mout[2] = minm[8];
+ mout[3] = minm[12];
+
+ mout[4] = minm[1];
+ mout[5] = minm[5];
+ mout[6] = minm[9];
+ mout[7] = minm[13];
+
+ mout[8] = minm[2];
+ mout[9] = minm[6];
+ mout[10] = minm[10];
+ mout[11] = minm[14];
+
+ mout[12] = minm[3];
+ mout[13] = minm[7];
+ mout[14] = minm[11];
+ mout[15] = minm[15];
+
+}
+