# RectUtils

> Utilities for rectangle selections.

## Definition

* **Type:** Class
* **Namespace:** [UnityEditor.Experimental.GraphView](/engine/6000.5/script-reference/unityeditor/experimental/graphview.md)
* **Assembly:** UnityEditor

```csharp
public class RectUtils
```

## Constructors

| Constructor                                                                                         | Description             |
| --------------------------------------------------------------------------------------------------- | ----------------------- |
| [RectUtils()](/engine/6000.5/script-reference/unityeditor/experimental/graphview/rectutils/ctor.md) | RectUtils' constructor. |

## Static Methods

| Method                                                                                                                 | Description                                                                                                     |
| ---------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- |
| [Encompass](/engine/6000.5/script-reference/unityeditor/experimental/graphview/rectutils/encompass.md)                 | Create rectangle that encompasses two rectangles.                                                               |
| [Inflate](/engine/6000.5/script-reference/unityeditor/experimental/graphview/rectutils/inflate.md)                     | Creates and returns an enlarged copy of the specified rectangle. The copy is enlarged by the specified amounts. |
| [IntersectsSegment](/engine/6000.5/script-reference/unityeditor/experimental/graphview/rectutils/intersectssegment.md) | Check if a line segment overlaps a rectangle.                                                                   |
