|
constexpr | LRectTemplate () noexcept |
| Initializes the vector with (0,0,0,0). More...
|
|
constexpr | LRectTemplate (T x, T y, T width, T height) noexcept |
| Initializes the vector with (x,y,width,height). More...
|
|
template<class NA , class NB > |
constexpr | LRectTemplate (const LPointTemplate< NA > &topLeft, const LPointTemplate< NB > &bottomRight) noexcept |
| Initializes the vector with (topLeft.x(),topLeft.y(),bottomRight.x(),bottomRight.y()). More...
|
|
template<class N > |
constexpr | LRectTemplate (T topLeft, const LPointTemplate< N > &bottomRight) noexcept |
| Initializes the vector with (topLeft.x(),topLeft.y(),bottomRight.x(),bottomRight.y()). More...
|
|
template<class N > |
constexpr | LRectTemplate (const LPointTemplate< N > &topLeft, T bottomRight) noexcept |
| Initializes the vector with (topLeft.x(),topLeft.y(),bottomRight.x(),bottomRight.y()). More...
|
|
constexpr | LRectTemplate (T all) noexcept |
| Initializes the vector with (all,all,all,all). More...
|
|
template<class N > |
constexpr | LRectTemplate (const LPointTemplate< N > &p) noexcept |
| Initializes the vector with (p.x(),p.y(),p.x(),p.y()). More...
|
|
template<class N > |
constexpr | LRectTemplate (const LRectTemplate< N > &r) noexcept |
| Copy constructor. More...
|
|
constexpr T | x () const noexcept |
| First vector component. More...
|
|
constexpr T | y () const noexcept |
| Second vector component. More...
|
|
constexpr T | w () const noexcept |
| Third vector component. More...
|
|
constexpr T | h () const noexcept |
| Fourth vector component. More...
|
|
constexpr T | width () const noexcept |
| Third vector component. More...
|
|
constexpr T | height () const noexcept |
| Fourth vector component. More...
|
|
constexpr T | area () const noexcept |
| The multiplication of the third and fourth component (width*height) More...
|
|
template<class N > |
constexpr bool | containsPoint (const LPointTemplate< N > &point, bool inclusive=true) const noexcept |
|
template<class N > |
constexpr bool | intersects (const LRectTemplate< N > &rect, bool inclusive=true) const noexcept |
|
constexpr const LPointTemplate< T > & | topLeft () const noexcept |
| 2D vector given by the (x,y) components of the rectangle More...
|
|
constexpr const LPointTemplate< T > & | bottomRight () const noexcept |
| 2D vector given by the (w,h) components of the rectangle More...
|
|
constexpr const LPointTemplate< T > & | TL () const noexcept |
| 2D vector given by the (x,y) components of the rectangle More...
|
|
constexpr const LPointTemplate< T > & | BR () const noexcept |
| 2D vector given by the (w,h) components of the rectangle More...
|
|
constexpr const LPointTemplate< T > & | pos () const noexcept |
| 2D vector given by the (x,y) components of the rectangle More...
|
|
constexpr const LPointTemplate< T > & | size () const noexcept |
| 2D vector given by the (w,h) components of the rectangle More...
|
|
constexpr void | setX (T x) noexcept |
| Asigns the first component. More...
|
|
constexpr void | setY (T y) noexcept |
| Asigns the second component. More...
|
|
constexpr void | setW (T width) noexcept |
| Asigns the third component. More...
|
|
constexpr void | setH (T height) noexcept |
| Asigns the fourth component. More...
|
|
constexpr void | setWidth (T width) noexcept |
| Asigns the third component. More...
|
|
constexpr void | setHeight (T height) noexcept |
| Asigns the fourth component. More...
|
|
constexpr void | setTL (const LPointTemplate< T > &p) noexcept |
| Asigns the (x,y) components. More...
|
|
constexpr void | setBR (const LPointTemplate< T > &p) noexcept |
| Asigns the (w,h) components. More...
|
|
constexpr void | setTopLeft (const LPointTemplate< T > &p) noexcept |
| Asigns the (x,y) components. More...
|
|
constexpr void | setBottomRight (const LPointTemplate< T > &p) noexcept |
| Asigns the (w,h) components. More...
|
|
constexpr void | setPos (const LPointTemplate< T > &p) noexcept |
| Asigns the (x,y) components. More...
|
|
constexpr void | setSize (const LPointTemplate< T > &p) noexcept |
| Asigns the (w,h) components. More...
|
|
template<class N > |
constexpr bool | clip (const LRectTemplate< N > &rect) noexcept |
| Returns true if the resulting rectangle has an area of 0. More...
|
|
template<class T>
class Louvre::LRectTemplate< T >
Template for 4D vectors.
The LRectTemplate class is a template for creating four-dimensional vectors.
The library uses this template to generate the classes LRect which works with 32-bit integers and LRectF which works with 32-bit floats.