rpos::core::ORectangleF Class
ORectangleF denotes oriented rectangle, which coordinates are all float
s
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);
/**
* 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();