# PolygonGeometry.ConvexHull

> A simple convex hull. The hull is not validated by physics so cannot be used directly for shapes.

## Definition

* **Type:** Struct
* **Namespace:** [Unity.U2D.Physics](/engine/6000.7/script-reference/unity/u2d/physics.md)
* **Assembly:** UnityEngine.PhysicsCore2DModule
* **Implements:** [IEquatable\<ConvexHull>](https://learn.microsoft.com/dotnet/api/system.iequatable-1)

```csharp
public struct PolygonGeometry.ConvexHull : IEquatable<PolygonGeometry.ConvexHull>
```

## Fields

| Value                                                                                                | Description                                                                                                                                |
| ---------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| [vertices](/engine/6000.7/script-reference/unity/u2d/physics/polygongeometry/convexhull/vertices.md) | The geometry vertices stored in a [PhysicsShape.ShapeArray](/engine/6000.7/script-reference/unity/u2d/physics/physicsshape/shapearray.md). |

## Properties

| Property                                                                                       | Description                     |
| ---------------------------------------------------------------------------------------------- | ------------------------------- |
| [count](/engine/6000.7/script-reference/unity/u2d/physics/polygongeometry/convexhull/count.md) | The number of polygon vertices. |

## Methods

| Method                                                                                                           | Description                                       |
| ---------------------------------------------------------------------------------------------------------------- | ------------------------------------------------- |
| [AsReadOnlySpan](/engine/6000.7/script-reference/unity/u2d/physics/polygongeometry/convexhull/asreadonlyspan.md) | Get the convex-hull vertices as a read-only span. |
| [AsSpan](/engine/6000.7/script-reference/unity/u2d/physics/polygongeometry/convexhull/asspan.md)                 | Get the convex-hull vertices as a span.           |
