# rect AddRects(rect, rect)

[Family: Global](/imperivm/en/CKS/familias/global/)

## Exact signature

```text
rect AddRects(rect, rect)
```

## Description

Computes the union of two rectangles with signed integer coordinates.

## Parameters and return type

**Return type:** `rect`

| Position | Type |
| --- | --- |
| 1 | `rect` |
| 2 | `rect` |

## Read and share

- [Markdown](/imperivm/exports/en/cks/api-5b58852cb1367c.md)
- [JSON](/imperivm/CKS/api/entries/api-5b58852cb1367c?lang=en)

Keep the notes and limitations when reusing this description. Do not infer undocumented parameter meanings, units or effects.
