|
🛰️航天仿真算法库 SpaceAST 0.0.1
|
#include <Transform.hpp>
类 ast::Transform 继承关系图:Public 成员函数 | |
| Transform ()=default | |
| Transform (const Vector3d &trans, const Rotation &rot) | |
| const Rotation & | getRotation () const |
| Rotation & | getRotation () |
| void | setRotation (const Rotation &rotation) |
| const Vector3d & | getTranslation () const |
| Vector3d & | getTranslation () |
| void | setTranslation (const Vector3d &translation) |
| const Matrix3d & | getMatrix () const |
| Transform & | compose (const Transform &next) |
| Transform | composed (const Transform &next) const |
| Transform | operator* (const Transform &next) const |
| Transform & | operator*= (const Transform &next) |
| void | getInverse (Transform &inversed) const |
| Transform | inverse () const |
| void | setIdentity () |
| void | transformPosition (const Vector3d &position, Vector3d &positionOut) const |
| Vector3d | transformPosition (const Vector3d &position) const |
静态 Public 成员函数 | |
| static Transform | Identity () |
Protected 属性 | |
| Vector3d | translation_ |
| Rotation | rotation_ |
坐标系转换类
坐标系转换类表示三维空间中的坐标系转换 包括坐标系平移和坐标系旋转
组合下一个坐标系转换
| next | 下一个转换 |
组合下一个坐标系转换
| next | 下一个坐标系转换 |
也可以通过 getRotation().transformVectorInv() 来实现。
| A_ALWAYS_INLINE void ast::Transform::getInverse | ( | Transform & | inversed | ) | const |
获取逆转换
| inversed | 逆转换 |
|
inline |
获取转换矩阵
|
inline |
获取坐标系旋转
|
inline |
获取坐标系平移
|
static |
获取单位转换
单位转换是指不进行任何转换的转换
| A_ALWAYS_INLINE Transform ast::Transform::inverse | ( | ) | const |
获取逆转换
组合下一个坐标系转换
| next | 下一个坐标系转换 |
组合下一个坐标系转换
| next | 下一个坐标系转换 |
|
inline |
设置坐标系旋转
| rotation | 坐标系旋转 |
|
inline |
设置坐标系平移
| translation | 坐标系平移 |
| A_ALWAYS_INLINE Vector3d ast::Transform::transformPosition | ( | const Vector3d & | position | ) | const |
转换位置
| position | 位置 |
| A_ALWAYS_INLINE void ast::Transform::transformPosition | ( | const Vector3d & | position, |
| Vector3d & | positionOut ) const |
转换位置
| position | 位置 |
| positionOut | 转换后的位置 |
先进行坐标系平移,再进行坐标系旋转。