classPiiRectangle
#include <PiiRectangle.h>
Stores the upper left corner and the size of a rectangle.
Description
See PiiPoint for usage examples.
Constructors and destructor
|
(
|
Public member functions
|
bool
|
(
Returns true if the point (x,y) is within this rectangle. |
|
bool
|
Returns true if |
|
bool
|
Returns true if |
|
bool
|
( )
Return |
|
bool
|
|
|
bool
|
|
|
Enlarges this rectangle to include both |
|
|
template<class Archive>
void
|
(
|
Function details
-
PiiRectangle
(- T xVal = 0
- T yVal = 0
- T w = 0
- T h = 0
[inline] -
bool contains
(- T x
- T y
[inline]Returns true if the point (x,y) is within this rectangle.
-
Returns true if
otheris fully contained bythis. -
Returns true if
otherintersectsthis. -
bool isEmpty
()[inline]Return
trueif eitherwidthorheightis non-positive,falseotherwise. -
-
-
Enlarges this rectangle to include both
thisandother. -
template<class Archive>
void serialize
(- Archive & archive
- const unsigned int
[inline]
Add a note
Not a single note added yet. Be the first, add yours.