24#include "AstMath/Rotation.hpp"
29#define _AST_DEF_TRANSFORM_PROPERTIES\
30 const Vector3d& translation() const { return translation_; }\
31 Vector3d& translation() { return translation_; }\
32 const Vector3d& getTranslation() const { return translation_; }\
33 Vector3d& getTranslation() { return translation_; }\
34 void setTranslation(const Vector3d& translation) { translation_ = translation; }\
54 _AST_DEF_TRANSFORM_PROPERTIES
55 _AST_DEF_ROTATION_PROPERTIES
83 void getInverse(
Transform& inversed)
const;
90 void setIdentity() { rotation_ = Rotation::Identity(); translation_ = Vector3d::Zero(); }
95 void transformPosition(
const Vector3d& position, Vector3d& positionOut)
const;
100 Vector3d transformPosition(
const Vector3d& position)
const;
103 Vector3d translation_{};
107A_ALWAYS_INLINE Transform::Transform(
const Vector3d &trans,
const Rotation &rot)
108 : translation_(trans), rotation_(rot)
void transformVector(const Vector3d &vector, Vector3d &vectorOut) const
变换向量
定义 Rotation.hpp:320
void getInverse(Rotation &inversed) const
获取逆旋转
定义 Rotation.hpp:308
static Rotation Identity()
单位旋转
定义 Rotation.hpp:235
Rotation composed(const Rotation &next) const
组合下一个旋转
定义 Rotation.hpp:293