TypeLib Xojo support Plugin |

# EinhugurGeometry.Rectangle Class (console safe)

This class defines Integer based rectangle structure.

Object
Rectangle

class EinhugurGeometry.Rectangle

#### Constructors

Rectangle | The default constructor for the Rect class.
Rectangle | A constructor which takes x1, y1, x2 and y2 coordinates as a parameters.
Rectangle | A constructor which takes two points as a parameters.

#### Properties

Bottom | Sets or gets the bottom coordinate of the rectangle.
Clone | Returns a clone of the Rect.
Height | Sets or gets the height of the rectangle.
Left | Sets or gets the left coordinate of the rectangle.
Right | Sets or gets the right coordinate of the rectangle.
Top | Sets or gets the top coordinate of the rectangle.
Width | Sets or gets the width of a rectangle.

#### Methods

Contains | Returns true if the given point is within the rectangle.
Contains | Returns true if the given x and y coordinates are within the rectangle.
Equal | Returns true if two rectangles are equal.
Inset | Shrinks or expands a rectangle by given x and y values.
IsEmpty | Returns true if the rectangle is empty.
Offset | Moves the rectangle.
Union | Calculates the smallest rectangle that encloses two rectangles and returns the result as new rectangle.

#### Supported Platforms:

- macOS Intel 64 bit
- macOS Apple Silicon
- Windows 32 bit
- Windows 64 bit
- Windows ARM 64 bit
- Linux 32 bit
- Linux 64 bit
- Linux ARM 32 bit
- Linux ARM 64 bit
- iOS