rpos::core::ORectangleF Class

ORectangleF denotes oriented rectangle, which coordinates are all floats

Header Files

rpos/core/detail/geometry_rectangle.h

Applies to

  • Slamware
  • Mapper

Constructors

/**
* Construct a oriented rectangle, start point and end point is (0,0), and with = 0.
*/
ORectangleF();  
/**
* Construct a oriented rectangle with the specified value.
*/ 
ORectangleF(VectorT start, VectorT end, scalar_t width);

ORectangleF

/**
* Copy constructor.
*/
ORectangleF(const RectangleF&);  

Methods

/**
* start point.
*/
const Vector2f& start() const;
Vector2f& start();  
/**
* end point.
*/
const Vector2f& end() const;
Vector2f& end();  
/**
* half width of rectangle.
*/ 
float halfWidth() const;
float& halfWidth();