|
constexpr | basic_rect (vector_t size, vector_t pos=vector_t(value_type(0.f))) noexcept |
| basic_rect object constructor More...
|
|
constexpr | basic_rect (value_type width, value_type height, value_type xPos=value_type(0.f), value_type yPos=value_type(0.f)) noexcept |
| basic_rect object constructor More...
|
|
constexpr void | expand (const vector_t &dSize) noexcept |
| Expand rect. More...
|
|
constexpr void | contract (const vector_t &dSize) noexcept |
| Contract rect. More...
|
|
constexpr void | set_size (const vector_t &size) noexcept |
| Change rect size. More...
|
|
constexpr void | set_pos (const vector_t &pos) noexcept |
| Set rect position. More...
|
|
constexpr void | shift (const vector_t &dPos) noexcept |
| Shift rect position. More...
|
|
constexpr const vector_t & | pos () const noexcept |
| Get upper left corner pos. More...
|
|
constexpr const vector_t & | min () const noexcept |
| Get min rect pos. More...
|
|
constexpr vector_t | max () const noexcept |
| Get max rect pos. More...
|
|
constexpr const vector_t & | size () const noexcept |
| Get rect size. More...
|
|
constexpr value_type | width () const noexcept |
| Get rect width. More...
|
|
constexpr value_type | height () const noexcept |
| Get rect height. More...
|
|
constexpr value_type | left () const noexcept |
| Get rect left border coordinate (x) More...
|
|
constexpr value_type | right () const noexcept |
| rect right border coordinate (x) More...
|
|
constexpr value_type | top () const noexcept |
| rect top border coordinate (y) More...
|
|
constexpr value_type | bottom () const noexcept |
| rect bottom border coordinate (y) More...
|
|
constexpr vector_t | center () const noexcept |
| Get rect center pos. More...
|
|
constexpr bool | empty () const noexcept |
| Is rect empty. More...
|
|
constexpr value_type | area () const noexcept |
| Calc rect area. More...
|
|
constexpr bool | contains (const vector_t &pos, const vector_t &originPos=vector_t(0.f)) const noexcept |
| Is point inside rect. More...
|
|
constexpr bool | contains (const basic_rect &other, const vector_t &originPos=vector_t(0.f)) const noexcept |
| Is other rect inside this rect. More...
|
|
constexpr bool | overlaps (const basic_rect &other) const noexcept |
| Is this rect overlaps other rect. More...
|
|
constexpr std::optional< basic_rect > | overlap (const basic_rect &other) const noexcept |
| Get rect representing overlap this rect by other rect. More...
|
|
template<class vector_t>
class qx::basic_rect< vector_t >
Definition at line 34 of file rect.h.