[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'Objects' (#rtl)

# TRect

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Describes a rectangular region in a plane.

## Declaration

Source position: objects.pp line 242

`type TRect = object`
`A: TPoint;` |  | Top left corner of rectangle
`B: TPoint;` |  | Bottom right corner of rectangle
`function Empty;` |  | Is the surface of the rectangle zero
`function Equals();` |  | Do the corners of the rectangles match
`function Contains();` |  | Determine if a point is inside the rectangle
`procedure Copy();` |  | Copy cornerpoints from another rectangle.
`procedure Union();` |  | Enlarges rectangle to encompass another rectangle.
`procedure Intersect();` |  | Reduce rectangle to intersection with another rectangle
`procedure Move();` |  | Move rectangle along a vector.
`procedure Grow();` |  | Expand rectangle with certain size.
`procedure Assign();` |  | Set rectangle corners.
`end;`

## Inheritance

`TRect` |  | Describes a rectangular region in a plane.

Documentation generated on: May 14 2021