Check whether a point is inside a rectangle.
Source position: types.pp line 526
function PtInRect( |
const Rect: TRect; |
const p: TPoint |
):Boolean; |
const Rect: TRectF; |
const p: TPointF |
):Boolean; |
PtInRect returns True if p is located inside Rect, and False if it is located outside the rectangle.
Remark: | Note that the bottom, right edges are not considered part of the rectangle, therefor a point located on one of these edges will not be considered part of the rectangle, meaning that for a record (10,10,100,100) the point (90,100) will not be considered part of the record, but 90,10 will be. |
|
Return the intersection of 2 rectangles. |
|
|
Return the union of 2 rectangles. |
|
|
Check whether a rectangle is empty. |
|
|
Offset the rectangle. |
|
|
Increase the rectangle in size, keeping it centered. |
|
|
Return the size of the rectangle. |