|
🛰️航天仿真算法库 SpaceAST 0.0.1
|
#include <Rotation.hpp>
类 ast::Rotation 继承关系图:Public 成员函数 | |
| Rotation ()=default | |
| Rotation (const Rotation &other)=default | |
| Rotation (const Quaternion &quat) | |
| Rotation (const Matrix3d &mat) | |
| Rotation (double angle, const Vector3d &axis) | |
| Rotation (const AngleAxis &aa) | |
| const Matrix3d & | getMatrix () const |
| Matrix3d & | getMatrix () |
| void | setMatrix (const Matrix3d &mat) |
| Quaternion | getQuaternion () const |
| void | setQuaternion (const Quaternion &quat) |
| Vector3d | getAxis () const |
| double | getAngle () const |
| void | getAngleAxis (double &angle, Vector3d &axis) const |
| void | setAngleAxis (double angle, const Vector3d &axis) |
| void | getAngleAxis (AngleAxis &aa) const |
| void | setAngleAxis (const AngleAxis &aa) |
| Rotation & | compose (const Rotation &next) |
| Rotation | composed (const Rotation &next) const |
| Rotation | operator* (const Rotation &next) const |
| Rotation & | operator*= (const Rotation &next) |
| void | getInverse (Rotation &inversed) const |
| Rotation | inverse () const |
| void | transformVector (const Vector3d &vector, Vector3d &vectorOut) const |
| void | transformVectorInv (const Vector3d &vector, Vector3d &vectorOut) const |
| Vector3d | transformVector (const Vector3d &vector) const |
| Vector3d | transformVectorInv (const Vector3d &vector) const |
静态 Public 成员函数 | |
| static Rotation | Identity () |
| static Rotation & | CastFrom (Matrix3d &mat) |
| static const Rotation & | CastFrom (const Matrix3d &mat) |
| static Rotation | FromMatrix (const Matrix3d &mat) |
Protected 属性 | |
| Matrix3d | matrix_ |
坐标系旋转类
表示三维空间内的坐标系旋转 坐标系旋转类当前是基于坐标转换矩阵实现的,未来也可能会切换到四元数进行实现。 但是你不用关心其内部实现细节,只需要关注并使用其公开接口,注意不要依赖其内部实现。
|
default |
复制构造函数
| other | 坐标系旋转对象 |
| A_ALWAYS_INLINE ast::Rotation::Rotation | ( | const Quaternion & | quat | ) |
构造函数
| quat | 四元数 |
| A_ALWAYS_INLINE ast::Rotation::Rotation | ( | const Matrix3d & | mat | ) |
从旋转矩阵构造坐标系旋转对象
| mat | 旋转矩阵 |
| A_ALWAYS_INLINE ast::Rotation::Rotation | ( | double | angle, |
| const Vector3d & | axis ) |
从轴角构造坐标系旋转对象
| axis | 旋转轴 |
| angle | 旋转角度(弧度) |
| A_ALWAYS_INLINE ast::Rotation::Rotation | ( | const AngleAxis & | aa | ) |
从轴角构造坐标系旋转对象
| aa | 轴角 |
组合下一个旋转
| next | 下一个旋转 |
组合下一个旋转
| next | 下一个旋转 |
| A_ALWAYS_INLINE double ast::Rotation::getAngle | ( | ) | const |
获取旋转角度(弧度)
| A_ALWAYS_INLINE void ast::Rotation::getAngleAxis | ( | AngleAxis & | aa | ) | const |
获取轴角
| aa | 轴角 |
| A_ALWAYS_INLINE void ast::Rotation::getAngleAxis | ( | double & | angle, |
| Vector3d & | axis ) const |
获取旋转轴和角度(弧度)
| axis | 旋转轴 |
| angle | 旋转角度(弧度) |
| A_ALWAYS_INLINE Vector3d ast::Rotation::getAxis | ( | ) | const |
获取旋转轴
| A_ALWAYS_INLINE void ast::Rotation::getInverse | ( | Rotation & | inversed | ) | const |
获取逆旋转
| inversed | 逆旋转 |
|
inline |
获取旋转矩阵
| A_ALWAYS_INLINE Quaternion ast::Rotation::getQuaternion | ( | ) | const |
获取四元数
|
static |
单位旋转
单位旋转是指不进行任何旋转的旋转
| A_ALWAYS_INLINE Rotation ast::Rotation::inverse | ( | ) | const |
获取逆旋转
组合下一个旋转
| next | 下一个旋转 |
组合下一个旋转
| next | 下一个旋转 |
| A_ALWAYS_INLINE void ast::Rotation::setAngleAxis | ( | const AngleAxis & | aa | ) |
设置轴角
| aa | 轴角 |
| A_ALWAYS_INLINE void ast::Rotation::setAngleAxis | ( | double | angle, |
| const Vector3d & | axis ) |
设置轴角
| angle | 旋转角度(弧度) |
| axis | 旋转轴 |
|
inline |
设置旋转矩阵
| mat | 旋转矩阵 |
| A_ALWAYS_INLINE void ast::Rotation::setQuaternion | ( | const Quaternion & | quat | ) |
设置四元数
| quat | 四元数 |
| A_ALWAYS_INLINE Vector3d ast::Rotation::transformVector | ( | const Vector3d & | vector | ) | const |
变换向量
| vector | 向量 |
| A_ALWAYS_INLINE void ast::Rotation::transformVector | ( | const Vector3d & | vector, |
| Vector3d & | vectorOut ) const |
变换向量
| vector | 向量 |
| vectorOut | 变换后的向量 |
| A_ALWAYS_INLINE Vector3d ast::Rotation::transformVectorInv | ( | const Vector3d & | vector | ) | const |
变换向量(逆变换)
| vector | 向量 |
| A_ALWAYS_INLINE void ast::Rotation::transformVectorInv | ( | const Vector3d & | vector, |
| Vector3d & | vectorOut ) const |