# Bounds

> Computes the bounds of a bezier path.

## Definition

* **Type:** Method
* **Namespace:** [Unity.VectorGraphics](/engine/6000.6/script-reference/unity/vectorgraphics.md)
* **Assembly:** UnityEngine.VectorGraphicsModule

## Bounds(BezierPathSegment\[])

Computes the bounds of a bezier path.

```csharp
public static Rect Bounds(BezierPathSegment[] path)
```

### Parameters

**** (\[BezierPathSegment\[]]\(/engine/6000.6/script-reference/unity/vectorgraphics/bezierpathsegment)): The path to compute the bounds from

### Returns

| Type                                                        | Description                                                    |
| ----------------------------------------------------------- | -------------------------------------------------------------- |
| [Rect](/engine/6000.6/script-reference/unityengine/rect.md) | A Rect containing the axis-aligned bounding-box of the contour |

## Bounds(IEnumerable\<Vector2>)

Computes the bounds of a list of vertices.

```csharp
public static Rect Bounds(IEnumerable<Vector2> vertices)
```

### Parameters

**** (\[IEnumerable\<Vector2>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)): The list of vertices to compute the bounds from

### Returns

| Type                                                        | Description                                                     |
| ----------------------------------------------------------- | --------------------------------------------------------------- |
| [Rect](/engine/6000.6/script-reference/unityengine/rect.md) | A Rect containing the axis-aligned bounding-box of the vertices |

## Bounds(BezierSegment, Vector2, Vector2)

Computes the bounds of a segment.

```csharp
public static void Bounds(BezierSegment segment, out Vector2 min, out Vector2 max)
```

### Parameters

**** (\[BezierSegment]\(/engine/6000.6/script-reference/unity/vectorgraphics/beziersegment)): The segment to flip**** (\[Vector2]\(/engine/6000.6/script-reference/unityengine/vector2)): The output min value of the segment**** (\[Vector2]\(/engine/6000.6/script-reference/unityengine/vector2)): The output max value of the segment
