Rectangle class final
#include <Shapes.hpp>
Constructors, destructors, conversion operators
Public functions
- auto x() const -> float
- auto y() const -> float
- auto w() const -> int
- auto h() const -> int
- auto top() const -> float
- auto bottom() const -> float
- auto leftmost() const -> float
- auto rightmost() const -> float
- auto center() const -> Point
- auto leftCenter() const -> Point
- auto rightCenter() const -> Point
- auto topLeft() const -> Point
- auto topRight() const -> Point
- auto topCenter() const -> Point
- auto bottomLeft() const -> Point
- auto bottomRight() const -> Point
- auto bottomCenter() const -> Point
- void copy(Rectangle*const other)
- void addX(const float x)
- void addY(const float y)
- void setX(const float x)
- void setY(const float y)
- void stretch(const float scale)
- void stretch(const float scaleX, const float scaleY)
- void update()