readme.txt

来自「四元数实现的三维空间的表达形式」· 文本 代码 · 共 58 行

TXT
58
字号
Name:   qrot3dAuthor: Steven Michael (smichael@ll.mit.edu)Date:   3/10/2005############################################################The following code implements quaternion rotation on a 3-D set of data.for a reference, see:http://mathworld.wolfram.com/Quaternion.html############################################################Compilation:The base distribution includes binary MATLAB functions for Linux andWindows.  The functions were compiled with Matlab R14.  I have nottried them with other versions, but they should work.  The Windowscompiler used is MS Visual Studio.NET 2003 (v7.1).  The linux compileris gcc version 2.96 (RedHat Linux 7.3).To compile in Linux, simply type "make" in the base directory.Some variables may need to be changed in the Makefile dependingupon MATLAB version and C compiler.I've included the MS Visual Studio project for compiling the"qrot3d.dll" file as well.############################################################Example Usage:rotation of a dataset about the Z axis by an angle of pi/3data = rand(10000,3);omega = [0 0 1];theta = pi/3;rotdata = qrot3d(data,omega,theta)rotation of the dataset about a pre-defined quaterniondata = rand(10000,3);omega = [0 0 1];theta = pi/3;q = [cos(theta/2), omega.*sin(theta/2)];rotdata = qrot3d(data,q);###########################################################Fixes:4/29/05Fix problem with double precision rotation

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?