Eigen——四元数笔记

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/a356337092/article/details/69945897

学习四元数的小demo:
https://github.com/AbnerCSZ/Eigen_Quaternion_demo

1.

从两个向量a,b中得到四元数,ab无需相同单位,也不用规范化。
FromTwoVectors (const MatrixBase< Derived1 > & a,const MatrixBase< Derived2 > &b)
2。
Quaternion ( const Scalar & w,const Scalar & x,const Scalar & y,const Scalar & z )

Note the order of the arguments: the real w coefficient first, while internally the coefficients are stored in the following order: [x, y, z, w]
3。
http://eigen.tuxfamily.org/dox/classEigen_1_1QuaternionBase.html

猜你喜欢

转载自blog.csdn.net/a356337092/article/details/69945897