大工至善|大学至真分享 http://blog.sciencenet.cn/u/lcj2212916

博文

[转载]【源码】简单四元数和三维旋转函数库

已有 2021 次阅读 2019-6-22 10:53 |系统分类:科研笔记|文章来源:转载

这个简单的函数库使用四元数和R^4之间的同构在Matlab中实现四元数代数仿真。

This simple library implements the quaternion algebra in Matlab using the isomorphism between quaternions and R^4. 


还实现了欧拉角、罗德里格斯公式和四元数版本的多种组合的旋转矩阵。

It also implements the rotation matrices for many combinations of Euler angles and the Rodrigues' Formula and the quaternion version. 


该函数库还包含3D可视化工具。

This library also contains a 3D Visualization tool.


主要函数概括如下:

Summarized description functions: 

The sum and subtraction is normally performed by Matlab as R^4 vectors. 

conjugate 

division on the left 

division on the right 

exponential 

inverse 

absolute value 

plot of coordinates in 3D 

product 

product with dot and cross commands 

matrix isomorphism 1 

matrix isomorphism 2 

rotation 

to string 

Rx 

Ry 

Rz 

Rxyz -- and others combinations of Euler Angles. 

Time derivative of Rxyz 

Rot Rodrigues


完整源码下载地址:

http://page3.dfpan.com/fs/blcj4221c291669e785/ 


更多精彩文章请关注微信号:qrcode_for_gh_60b944f6c215_258.jpg




https://blog.sciencenet.cn/blog-69686-1186299.html

上一篇:[转载]【源码】开源图像去噪软件IMPROSO
下一篇:[转载]【源码】基于MATLAB的气候数据工具箱:用于分析并显示地球科学数据
收藏 IP: 60.169.30.*| 热度|

0

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

数据加载中...
扫一扫,分享此博文

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-9-19 14:10

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部