rpos::core::Vector2f 类

二维向量,元素数据类型为float 型。

头文件

rpos/core/detail/geometry_matrix.h

适用于

  • Slamware
  • Mapper

构造器

/**
* 构造一个二维向量。
*/ 
Vector2f();  
/**
* 构造一个x、y 为指定的值的向量。
*/ 
Vector2f(float x, float y);  
/**
* 拷贝构造函数。 
*/ 
Vector2f(const Vector2f&);  

运算符

/**
* 赋值运算符。
*/
Vector2f& operator=(const Vector2f&);  

方法

/**
* 二维向量的x分量。
*/
float x() const;
float& x();  
/**
* 二维向量的y分量。
*/ 
float y() const;
float& y();