rectangle Struct Reference
#include <utils.h>
List of all members.
Detailed Description
Definition at line 49 of file utils.h.
Member Function Documentation
void rectangle::normalize |
( |
|
) |
|
int rectangle::isIntersect |
( |
const rectangle & |
r2 |
) |
const |
int rectangle::isVerInter |
( |
const rectangle & |
r2 |
) |
const |
int rectangle::ivHorInter |
( |
const rectangle & |
r2 |
) |
const |
GBool rectangle::hitTest |
( |
const point & |
pt |
) |
const |
Definition at line 68 of file utils.cpp.
00069 {
00070 return (left <= pt.x && right >= pt.x &&
00071 top <= pt.y && bottom >= pt.y);
00072 }
GBool rectangle::hitTest |
( |
const int |
x, |
|
|
const int |
y | |
|
) |
| | const |
Definition at line 74 of file utils.cpp.
00075 {
00076 return (left <= x && right >= x &&
00077 top <= y && bottom >= y);
00078 }
Member Data Documentation
The documentation for this struct was generated from the following files: