diff options
author | cnlohr <lohr85@gmail.com> | 2017-03-11 18:33:04 -0500 |
---|---|---|
committer | cnlohr <lohr85@gmail.com> | 2017-03-11 18:33:04 -0500 |
commit | a96dd89c915b5721ed3ce9d41a1d2388651e9ce7 (patch) | |
tree | 69b65fcc43f4cdbd76a97603cfb9837e0fd772c6 /redist | |
parent | 4d85e6d6b3bb55d56d190414f7c1549ba2107c43 (diff) | |
download | libsurvive-a96dd89c915b5721ed3ce9d41a1d2388651e9ce7.tar.gz libsurvive-a96dd89c915b5721ed3ce9d41a1d2388651e9ce7.tar.bz2 |
general updates from the current livestream.
Diffstat (limited to 'redist')
-rw-r--r-- | redist/lintest.c | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/redist/lintest.c b/redist/lintest.c index 0a268ff..377824e 100644 --- a/redist/lintest.c +++ b/redist/lintest.c @@ -7,6 +7,16 @@ int main() FLT e[3] = { 1,1,3.14 }; FLT q[4]; FLT m[16]; + FLT pt[3] = { 1, 1, 1 }; + + q[0] = 0; + q[1] = 0; + q[2] = 0; + q[3] = 1; + + quatrotatevector( pt, q, pt ); + printf( "%f %f %f\n", PFTHREE( pt ) ); + printf( "\n" ); quatfromeuler( q, e ); printf( "%f %f %f %f\n\n", PFFOUR( q ) ); @@ -32,9 +42,9 @@ int main() //Try setting up a pose. - FLT mypose[7] = { 0, 0, 10, q[0], q[1], q[2], q[3] ); - ApplyPoseToPoint( FLT * pout, const FLT * pin, const FLT * pose ); -void InvertPose( FLT * poseout, const FLT * pose ); +// FLT mypose[7] = { 0, 0, 10, q[0], q[1], q[2], q[3] ); +// ApplyPoseToPoint( FLT * pout, const FLT * pin, const FLT * pose ); +//void InvertPose( FLT * poseout, const FLT * pose ); } |