|
| constexpr | RectangleT ()=default |
| | Default constructor for RectangleT.
|
| |
| constexpr | RectangleT (const PointT< PointType > &point, const SizeT< SizeType > &size) |
| | Constructs a rectangle from a point and a size.
|
| |
| constexpr | RectangleT (PointType x, PointType y, SizeType width, SizeType height) |
| | Constructs a rectangle from coordinates and dimensions.
|
| |
| constexpr PointType | GetX () const |
| | Returns the x-coordinate of the rectangle's top-left corner.
|
| |
| constexpr PointType | GetY () const |
| | Returns the y-coordinate of the rectangle's top-left corner.
|
| |
| constexpr SizeType | GetWidth () const |
| | Returns the width of the rectangle.
|
| |
| constexpr SizeType | GetHeight () const |
| | Returns the height of the rectangle.
|
| |
| constexpr SizeT< SizeType > | GetSize () const |
| | Returns the size of the rectangle.
|
| |
| constexpr PointT< PointType > | GetPosition () const |
| | Returns the top-left corner of the rectangle as a Point.
|
| |
| template<typename RhsPointType , typename RhsSizeType > |
| constexpr bool | operator== (const RectangleT< RhsPointType, RhsSizeType > &rhs) const |
| | Equality operator.
|
| |
| template<typename RhsPointType , typename RhsSizeType > |
| constexpr bool | operator!= (const RectangleT< RhsPointType, RhsSizeType > &rhs) const |
| | Inequality operator.
|
| |
| std::string | ToString () const |
| | Returns a string representation of the rectangle.
|
| |
template<typename PointType, typename SizeType>
class peak::common::detail::RectangleT< PointType, SizeType >
A generic rectangle defined by a point and a size.
Represents a rectangle composed of a position (top-left corner) and a size. The position and size types are customizable via template parameters.
- Template Parameters
-
| PointType | The type representing the positions' coordinates (e.g., int32_t, float). |
| SizeType | The type representing the size's dimensions (e.g., uint32_t, float). |
- Since
- ids_peak_common 1.0