# Sandbox.RectInt

Represents a rectangle but with whole numbers

- Kind: struct
- Namespace: `Sandbox`
- Assembly: `Sandbox.System`
- Modifiers: sealed

## Constructors

- [`RectInt`](/api/Sandbox.RectInt/.ctor): Initialize a Rect at given position and with given size.

## Properties

- [`Bottom`](/api/Sandbox.RectInt/Bottom): Position of rect's bottom edge relative to its parent.
- [`BottomLeft`](/api/Sandbox.RectInt/BottomLeft): Position of the bottom left edge of this rect.
- [`BottomRight`](/api/Sandbox.RectInt/BottomRight): Position of the bottom right edge of this rect.
- [`Center`](/api/Sandbox.RectInt/Center): Center of this rect.
- [`Height`](/api/Sandbox.RectInt/Height): Height of the rect.
- [`Left`](/api/Sandbox.RectInt/Left): Position of rect's left edge relative to its parent, can also be interpreted as its position on the X axis.
- [`Position`](/api/Sandbox.RectInt/Position): Position of this rect.
- [`Right`](/api/Sandbox.RectInt/Right): Position of rect's right edge relative to its parent.
- [`Size`](/api/Sandbox.RectInt/Size): Size of this rect.
- [`Top`](/api/Sandbox.RectInt/Top): Position of rect's top edge relative to its parent, can also be interpreted as its position on the Y axis.
- [`TopLeft`](/api/Sandbox.RectInt/TopLeft): Position of the top left edge of this rect.
- [`TopRight`](/api/Sandbox.RectInt/TopRight): Position of the top right edge of this rect.
- [`Width`](/api/Sandbox.RectInt/Width): Width of the rect.
- [`WithoutPosition`](/api/Sandbox.RectInt/WithoutPosition): Returns this rect with position set to 0 on both axes.

## Methods

- [`Add`](/api/Sandbox.RectInt/Add): Expand this Rect to contain the other rect
- [`AddPoint`](/api/Sandbox.RectInt/AddPoint): Returns this rect expanded to include this point
- [`FromPoints`](/api/Sandbox.RectInt/FromPoints): Create a rect between two points. The order of the points doesn't matter.
- [`Grow`](/api/Sandbox.RectInt/Grow): Returns a Rect grown in every direction by given amounts.
- [`IsInside`](/api/Sandbox.RectInt/IsInside): Return true if the passed rect is partially or fully inside this rect.
- [`Shrink`](/api/Sandbox.RectInt/Shrink): Returns a Rect shrunk in every direction by given values.
