⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme.txt

📁 四元数实现的三维空间的表达形式
💻 TXT
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -