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

640?wx_fmt=jpeg

这个简单的函数库使用四元数和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


完整源码下载请点击“阅读原文”

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值