11 #ifndef _ARTEC_RECT_H_ 
   12 #define _ARTEC_RECT_H_ 
   17 namespace artec { 
namespace sdk { 
namespace base
 
   24 template < 
typename T = 
int >
 
   34         : left(left), top(top), right(right), bottom(bottom)
 
  103 #endif //_ARTEC_RECT_H_ 
Rect & operator+=(const Point2< T > &v)
Rect operator+(const Point2< T > &v) const 
T width() const 
Rect the width. 
Rect & offset(const Point2< T > &v)
Offset rect. 
void normalize()
normalize rect 
Structure that defines rectangle, i.e. two-dimensional range. 
bool contains(T x, T y) const 
Check whether the point is in rect. 
2-dimensional point class. 
void intersect(const Rect< T > &rect)
Intersect rect. 
Point2< T > high() const 
Returns the low boundaries. 
Size size() const 
Returns the size. 
Rect(const Point2< T > &topLeft, const Point2< T > &bottomRight)
bool contains(const Point2< T > &p) const 
Check whether the point is in rect. 
Rect(T left, T top, T right, T bottom)
Point2< T > low() const 
Returns the low boundaries. 
Image size defined by width and height. 
Point2< T > center() const 
Returns center of rectangle. 
T height() const 
Rect the height.