libxr 1.0
Want to be the best embedded framework
|
表示三维空间中的刚体变换,包括旋转和位移。Represents rigid body transformations in 3D space, including rotation and translation. More...
#include <transform.hpp>
Public Member Functions | |
Transform ()=default | |
默认构造函数,创建单位变换。Default constructor creating an identity transformation. | |
Transform (const Quaternion< Scalar > &rotation, const Position< Scalar > &translation) | |
使用给定的旋转和位移构造变换。Constructs a transformation with the given rotation and translation. | |
Transform & | operator= (const Quaternion< Scalar > &q) |
赋值运算符,将旋转部分设置为给定的四元数。Assignment operator setting the rotation component to the given quaternion. | |
Transform & | operator= (const Eigen::AngleAxis< Scalar > &a) |
赋值运算符,将旋转部分设置为给定的旋转轴-角度表示。Assignment operator setting the rotation component using an axis-angle representation. | |
Transform & | operator= (const Position< Scalar > &p) |
赋值运算符,将平移部分设置为给定的位移。Assignment operator setting the translation component to the given position. | |
Transform | operator+ (const Transform &t) const |
计算当前变换与另一个变换的组合。Computes the composition of the current transformation with another transformation. | |
Transform | operator- (const Transform &t) const |
计算当前变换与另一个变换的相对变换。Computes the relative transformation between the current transformation and another transformation. | |
Data Fields | |
Quaternion< Scalar > | rotation |
Position< Scalar > | translation |
表示三维空间中的刚体变换,包括旋转和位移。Represents rigid body transformations in 3D space, including rotation and translation.
Scalar | 数据类型,默认为 DefaultScalar。Data type, defaulting to DefaultScalar. |
Definition at line 1091 of file transform.hpp.
|
inline |
使用给定的旋转和位移构造变换。Constructs a transformation with the given rotation and translation.
rotation | 旋转四元数。Rotation quaternion. |
translation | 平移向量。Translation vector. |
Definition at line 1109 of file transform.hpp.
|
inline |
计算当前变换与另一个变换的组合。Computes the composition of the current transformation with another transformation.
t | 另一个变换。Another transformation. |
Definition at line 1156 of file transform.hpp.
|
inline |
计算当前变换与另一个变换的相对变换。Computes the relative transformation between the current transformation and another transformation.
t | 另一个变换。Another transformation. |
Definition at line 1168 of file transform.hpp.
|
inline |
赋值运算符,将旋转部分设置为给定的旋转轴-角度表示。Assignment operator setting the rotation component using an axis-angle representation.
a | 旋转轴-角度对象。Axis-angle representation. |
Definition at line 1132 of file transform.hpp.
|
inline |
赋值运算符,将平移部分设置为给定的位移。Assignment operator setting the translation component to the given position.
p | 平移向量。Translation vector. |
Definition at line 1144 of file transform.hpp.
|
inline |
赋值运算符,将旋转部分设置为给定的四元数。Assignment operator setting the rotation component to the given quaternion.
q | 旋转四元数。Rotation quaternion. |
Definition at line 1120 of file transform.hpp.
Quaternion<Scalar> LibXR::Transform< Scalar >::rotation |
旋转部分,使用四元数表示。Rotation component represented by a quaternion.
Definition at line 1094 of file transform.hpp.
平移部分,使用三维向量表示。Translation component represented by a 3D vector.
Definition at line 1096 of file transform.hpp.