![]() |
Artec 3D Scanning SDK
2.0
|
Structure that defines rectangle, i.e. two-dimensional range. More...
#include <artec/sdk/base/Rect.h>
Public Types | |
| typedef T | value_type |
Public Member Functions | |
| Rect () | |
| Rect (T left, T top, T right, T bottom) | |
| Rect (const Point2< T > &topLeft, const Point2< T > &bottomRight) | |
| bool | isEmpty () const |
| void | normalize () |
| normalize rect More... | |
| T | width () const |
| Rect the width. More... | |
| T | height () const |
| Rect the height. More... | |
| Size | size () const |
| Returns the size. More... | |
| Point2< T > | low () const |
| Returns the low boundaries. More... | |
| Point2< T > | high () const |
| Returns the low boundaries. More... | |
| bool | contains (T x, T y) const |
| Check whether the point is in rect. More... | |
| bool | contains (const Point2< T > &p) const |
| Check whether the point is in rect. More... | |
| Rect & | offset (const Point2< T > &v) |
| Offset rect. More... | |
| Rect & | operator+= (const Point2< T > &v) |
| Rect | operator+ (const Point2< T > &v) const |
| void | intersect (const Rect< T > &rect) |
| Intersect rect. More... | |
| Point2< T > | center () const |
| Returns center of rectangle. More... | |
Public Attributes | |
| T | left |
| T | top |
| T | right |
| T | bottom |
Structure that defines rectangle, i.e. two-dimensional range.
| typedef T artec::sdk::base::Rect< T >::value_type |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| T artec::sdk::base::Rect< T >::bottom |
| T artec::sdk::base::Rect< T >::left |
| T artec::sdk::base::Rect< T >::right |
| T artec::sdk::base::Rect< T >::top |
1.8.9.1