artec::sdk::base::Rect< T > Struct Template Reference
#include <artec/sdk/base/Rect.h>
Public Types | |
typedef T | value_type |
Public Member Functions | |
Rect () | |
Rect (int left, int top, int right, int 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 is point in rect More... | |
bool | contains (const Point2< T > &p) const |
check is point 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 |
return center of rectangle More... | |
Public Attributes | |
T | left |
T | top |
T | right |
T | bottom |
Detailed Description
Member Typedef Documentation
template<typename T = int>
typedef T artec::sdk::base::Rect< T >::value_type |
Constructor & Destructor Documentation
template<typename T = int>
|
inline |
template<typename T = int>
|
inline |
template<typename T = int>
|
inline |
Member Function Documentation
template<typename T = int>
|
inline |
template<typename T = int>
|
inline |
template<typename T = int>
|
inline |
template<typename T = int>
|
inline |
template<typename T = int>
|
inline |
template<typename T = int>
|
inline |
template<typename T = int>
|
inline |
template<typename T = int>
|
inline |
template<typename T = int>
|
inline |
template<typename T = int>
|
inline |
template<typename T = int>
|
inline |
template<typename T = int>
|
inline |
template<typename T = int>
|
inline |
template<typename T = int>
|
inline |
Member Data Documentation
template<typename T = int>
T artec::sdk::base::Rect< T >::bottom |
template<typename T = int>
T artec::sdk::base::Rect< T >::left |
template<typename T = int>
T artec::sdk::base::Rect< T >::right |
template<typename T = int>
T artec::sdk::base::Rect< T >::top |
The documentation for this struct was generated from the following file:
- artec/sdk/base/Rect.h