|
libxr
1.0
Want to be the best embedded framework
|
三维坐标轴类,继承自 Eigen::Matrix<Scalar, 3, 1>。 A 3D axis class, inheriting from Eigen::Matrix<Scalar, 3, 1>. More...
#include <transform.hpp>
Public Member Functions | |
| Axis () | |
| 默认构造函数,将向量初始化为 (0,0,0)。 Default constructor initializing the vector to (0,0,0). | |
| Axis (Scalar x, Scalar y, Scalar z) | |
| 通过 (x, y, z) 坐标值构造轴向量。 Constructs an axis vector using (x, y, z) coordinates. | |
| Axis (const Axis &p) | |
拷贝构造函数,复制另一个 Axis 对象。 Copy constructor to duplicate another Axis object. | |
| Axis< Scalar > & | operator= (const Eigen::Matrix< Scalar, 3, 1 > &p) |
赋值运算符重载,将 Eigen::Matrix<Scalar, 3, 1> 赋值给 Axis 对象。 Overloaded assignment operator to assign an Eigen::Matrix<Scalar, 3, 1> to an Axis object. | |
| Axis< Scalar > & | operator= (const Axis &p) |
赋值运算符重载,将另一个 Axis 对象赋值给当前对象。 Overloaded assignment operator to assign another Axis object to this object. | |
Static Public Member Functions | |
| static Axis | X () |
| 返回 X 轴单位向量 (1,0,0)。 Returns the unit vector along the X-axis (1,0,0). | |
| static Axis | Y () |
| 返回 Y 轴单位向量 (0,1,0)。 Returns the unit vector along the Y-axis (0,1,0). | |
| static Axis | Z () |
| 返回 Z 轴单位向量 (0,0,1)。 Returns the unit vector along the Z-axis (0,0,1). | |
三维坐标轴类,继承自 Eigen::Matrix<Scalar, 3, 1>。 A 3D axis class, inheriting from Eigen::Matrix<Scalar, 3, 1>.
该类用于表示三维空间中的单位向量或方向向量, 并提供了一些常见的轴向定义(X、Y、Z)。 This class represents unit vectors or directional vectors in 3D space and provides common axis definitions (X, Y, Z).
| Scalar | 数据类型,如 float 或 double。 The data type, such as float or double. |
Definition at line 247 of file transform.hpp.
|
inline |
默认构造函数,将向量初始化为 (0,0,0)。 Default constructor initializing the vector to (0,0,0).
Definition at line 254 of file transform.hpp.
|
inline |
通过 (x, y, z) 坐标值构造轴向量。 Constructs an axis vector using (x, y, z) coordinates.
| x | X 轴分量。 The X-axis component. |
| y | Y 轴分量。 The Y-axis component. |
| z | Z 轴分量。 The Z-axis component. |
Definition at line 264 of file transform.hpp.
|
inline |
|
inline |
赋值运算符重载,将另一个 Axis 对象赋值给当前对象。 Overloaded assignment operator to assign another Axis object to this object.
该操作检查自赋值,并确保数据正确拷贝。 This operation checks for self-assignment and ensures correct data copying.
Definition at line 331 of file transform.hpp.
|
inline |
赋值运算符重载,将 Eigen::Matrix<Scalar, 3, 1> 赋值给 Axis 对象。 Overloaded assignment operator to assign an Eigen::Matrix<Scalar, 3, 1> to an Axis object.
该操作直接拷贝 Eigen 矩阵的数据到 Axis,保证对象数据一致性。 This operation directly copies the data from an Eigen matrix to Axis, ensuring data consistency.
| p | 赋值的 Eigen::Matrix<Scalar, 3, 1> 矩阵。 The Eigen::Matrix<Scalar, 3, 1> matrix to be assigned. |
Definition at line 312 of file transform.hpp.
|
inlinestatic |
返回 X 轴单位向量 (1,0,0)。 Returns the unit vector along the X-axis (1,0,0).
Definition at line 280 of file transform.hpp.
|
inlinestatic |
返回 Y 轴单位向量 (0,1,0)。 Returns the unit vector along the Y-axis (0,1,0).
Definition at line 288 of file transform.hpp.
|
inlinestatic |
返回 Z 轴单位向量 (0,0,1)。 Returns the unit vector along the Z-axis (0,0,1).
Definition at line 296 of file transform.hpp.