# CircleGeometry

> The geometry of a closed circle. See PhysicsBody.CreateShape.

## Definition

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

```csharp
public struct CircleGeometry : IEquatable<CircleGeometry>
```

## Static Fields

| Value                                                                                                  | Description             |
| ------------------------------------------------------------------------------------------------------ | ----------------------- |
| [defaultGeometry](/engine/6000.7/script-reference/unity/u2d/physics/circlegeometry/defaultgeometry.md) | Get the default Circle. |

## Constructors

| Constructor                                                                                  | Description                                                                                                                            |
| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| [CircleGeometry()](/engine/6000.7/script-reference/unity/u2d/physics/circlegeometry/ctor.md) | Create a default Circle. See [\_defaultGeometry](/engine/6000.7/script-reference/unity/u2d/physics/circlegeometry/defaultgeometry.md). |

## Properties

| Property                                                                               | Description                                               |
| -------------------------------------------------------------------------------------- | --------------------------------------------------------- |
| [center](/engine/6000.7/script-reference/unity/u2d/physics/circlegeometry/center.md)   | The local center.                                         |
| [isValid](/engine/6000.7/script-reference/unity/u2d/physics/circlegeometry/isvalid.md) | Whether the geometry describes a circle that can be used. |
| [radius](/engine/6000.7/script-reference/unity/u2d/physics/circlegeometry/radius.md)   | The radius.                                               |

## Methods

| Method                                                                                                                       | Description                                                                                                                                                                                                                                                                                                                                                                                             |
| ---------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [CalculateAABB](/engine/6000.7/script-reference/unity/u2d/physics/circlegeometry/calculateaabb.md)                           | Calculate the AABB of the geometry.                                                                                                                                                                                                                                                                                                                                                                     |
| [CalculateMassConfiguration](/engine/6000.7/script-reference/unity/u2d/physics/circlegeometry/calculatemassconfiguration.md) | Calculate the mass configuration of the geometry.                                                                                                                                                                                                                                                                                                                                                       |
| [CastRay](/engine/6000.7/script-reference/unity/u2d/physics/circlegeometry/castray.md)                                       | Calculate if a world ray intersects the geometry. See [PhysicsQuery.CastResult](/engine/6000.7/script-reference/unity/u2d/physics/physicsquery/castresult.md).                                                                                                                                                                                                                                          |
| [CastShape](/engine/6000.7/script-reference/unity/u2d/physics/circlegeometry/castshape.md)                                   | Calculate if a cast shape intersects the geometry. Initially touching shapes are treated as a miss. You should check for overlap first if initial overlap is required. See [PhysicsQuery.CastShapeInput](/engine/6000.7/script-reference/unity/u2d/physics/physicsquery/castshapeinput.md) and [PhysicsQuery.CastResult](/engine/6000.7/script-reference/unity/u2d/physics/physicsquery/castresult.md). |
| [ClosestPoint](/engine/6000.7/script-reference/unity/u2d/physics/circlegeometry/closestpoint.md)                             | Calculate the closest point on this geometry to the specified point.                                                                                                                                                                                                                                                                                                                                    |
| [CreateShapeProxy](/engine/6000.7/script-reference/unity/u2d/physics/circlegeometry/createshapeproxy.md)                     | Create a shape proxy from the geometry.                                                                                                                                                                                                                                                                                                                                                                 |
| [Intersect](/engine/6000.7/script-reference/unity/u2d/physics/circlegeometry/intersect.md)                                   | Check the intersection between this geometry and another.                                                                                                                                                                                                                                                                                                                                               |
| [InverseTransform](/engine/6000.7/script-reference/unity/u2d/physics/circlegeometry/inversetransform.md)                     | Inverse-Transform the geometry.                                                                                                                                                                                                                                                                                                                                                                         |
| [OverlapPoint](/engine/6000.7/script-reference/unity/u2d/physics/circlegeometry/overlappoint.md)                             | Calculate if a point overlaps the geometry.                                                                                                                                                                                                                                                                                                                                                             |
| [ToPolygons](/engine/6000.7/script-reference/unity/u2d/physics/circlegeometry/topolygons.md)                                 | Creates multiple [PolygonGeometry](/engine/6000.7/script-reference/unity/u2d/physics/polygongeometry.md) from the geometry. A limit is imposed on small vertex distances so it is recommended that the geometry is scaled appropriately rather than on the returned geometry so geometry is not discarded due to it being invalid.                                                                      |
| [Transform](/engine/6000.7/script-reference/unity/u2d/physics/circlegeometry/transform.md)                                   | Transform the geometry.                                                                                                                                                                                                                                                                                                                                                                                 |

## Static Methods

| Method                                                                                                   | Description                                     |
| -------------------------------------------------------------------------------------------------------- | ----------------------------------------------- |
| [Create](/engine/6000.7/script-reference/unity/u2d/physics/circlegeometry/create.md)                     | Create Circle.                                  |
| [InverseTransform](/engine/6000.7/script-reference/unity/u2d/physics/circlegeometry/inversetransform.md) | Inverse-Transform a batch of geometry in place. |
| [Transform](/engine/6000.7/script-reference/unity/u2d/physics/circlegeometry/transform.md)               | Transform a batch of geometry in place.         |
