# SRectBounds

Calculates the union of two SRects.

### Synopsis

`SRect * SRectBounds (SRect *dst, SRect *rect1, SRect *rect2)`

### Description

Calculates the bounding box of two rectangles, returning a rectangle that encompasses all the area described by the two source rectangles. The dst rectangle can be the same as either source rectangle.

### Arguments

dst
  Pointer to an SRect where the results are to be stored.

rect1
  Pointer to one of the source SRects.

rect2
  Pointer to the other source SRect.

### Return Value

The input parameter dst.

### Implementation

Library call implemented in lib3do.lib.

### Associated Files

lib3do.lib, celutils.h

### See Also

`SRectIntersection`, CRectBounds