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 241 of file transform.hpp.
|
inline |
默认构造函数,将向量初始化为 (0,0,0)。 Default constructor initializing the vector to (0,0,0).
Definition at line 248 of file transform.hpp.
通过 (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 258 of file transform.hpp.
|
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 323 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 306 of file transform.hpp.
返回 X 轴单位向量 (1,0,0)。 Returns the unit vector along the X-axis (1,0,0).
Definition at line 274 of file transform.hpp.
返回 Y 轴单位向量 (0,1,0)。 Returns the unit vector along the Y-axis (0,1,0).
Definition at line 282 of file transform.hpp.
返回 Z 轴单位向量 (0,0,1)。 Returns the unit vector along the Z-axis (0,0,1).
Definition at line 290 of file transform.hpp.