| .png) | omegalib
    13.1
    | 
Stores a rectangular region in integer units. More...
#include <Math.h>
| Public Types | |
| typedef Eigen::Matrix< Type, 2, 1 > | VectorType | 
| Public Member Functions | |
| Rect_T () | |
| Rect_T (const VectorType &vmin, const VectorType &vmax) | |
| Rect_T (Type x, Type y, Type width, Type height) | |
| Type | width () const | 
| Type | height () const | 
| VectorType | size () const | 
| Type | x () const | 
| Type | y () const | 
| bool | intersects (const Rect_T< Type > &other) const | 
| std::pair< bool, Rect_T< Type > > | getIntersection (const Rect_T< Type > &other) | 
| Computes the intersection between this rect and other.  More... | |
| std::pair< bool, Rect_T< Type > > | subtract (const Rect_T< Type > &other) | 
| Computex the convex subtraction between this rect & other, i.e The rectangle generated by subtracting other from this rect.  More... | |
| bool | operator!= (const Rect_T< Type > &other) | 
| bool | operator== (const Rect_T< Type > &other) | 
| Public Attributes | |
| VectorType | min | 
| VectorType | max | 
Stores a rectangular region in integer units.
Useful for storing viewports and other pixel-space regions.
| typedef Eigen::Matrix<Type, 2, 1> omicron::Rect_T< Type >::VectorType | 
| 
 | inline | 
| 
 | inline | 
| 
 | inline | 
| 
 | inline | 
Computes the intersection between this rect and other.
Returns a pair containing a boolean set to true if an intersection exists, and the resulting rect.
| 
 | inline | 
| 
 | inline | 
| 
 | inline | 
| 
 | inline | 
| 
 | inline | 
| 
 | inline | 
Computex the convex subtraction between this rect & other, i.e The rectangle generated by subtracting other from this rect.
| 
 | inline | 
| 
 | inline | 
| 
 | inline | 
| VectorType omicron::Rect_T< Type >::max | 
| VectorType omicron::Rect_T< Type >::min |