# InverseTransform

> Inverse-Transform the geometry.

## Definition

* **Type:** Method
* **Namespace:** [Unity.U2D.Physics](/engine/6000.7/script-reference/unity/u2d/physics.md)
* **Assembly:** UnityEngine.PhysicsCore2DModule

## InverseTransform(PhysicsTransform)

Inverse-Transform the geometry.

```csharp
public readonly PolygonGeometry InverseTransform(PhysicsTransform transform)
```

### Parameters

**** (\[PhysicsTransform]\(/engine/6000.7/script-reference/unity/u2d/physics/physicstransform)): The geometry to transform with.

### Returns

| Type                                                                                    | Description                       |
| --------------------------------------------------------------------------------------- | --------------------------------- |
| [PolygonGeometry](/engine/6000.7/script-reference/unity/u2d/physics/polygongeometry.md) | The inverse-transformed geometry. |

## InverseTransform(Matrix4x4, bool)

Inverse-Transform the geometry. The maximum (minimum in the inverse) absolute value component from the scale will be used to scale the [\_radius](/engine/6000.7/script-reference/unity/u2d/physics/polygongeometry/radius.md).

```csharp
public readonly PolygonGeometry InverseTransform(Matrix4x4 transform, bool scaleRadius)
```

### Parameters

**** (\[Matrix4x4]\(/engine/6000.7/script-reference/unityengine/matrix4x4)): The transform to be used on the geometry.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Whether to scale the radius of the shape.

### Returns

| Type                                                                                    | Description                       |
| --------------------------------------------------------------------------------------- | --------------------------------- |
| [PolygonGeometry](/engine/6000.7/script-reference/unity/u2d/physics/polygongeometry.md) | The inverse-transformed geometry. |

## InverseTransform(Span\<PolygonGeometry>, PhysicsTransform)

Inverse-Transform a batch of geometry in place. A transform that degenerates the geometry hull writes an invalid (zero-vertex) polygon in its place.

```csharp
public static void InverseTransform(Span<PolygonGeometry> geometry, PhysicsTransform transform)
```

### Parameters

**** (\[Span\<PolygonGeometry>]\(https\://learn.microsoft.com/dotnet/api/system.span-1)): The geometry to inverse-transform in place.**** (\[PhysicsTransform]\(/engine/6000.7/script-reference/unity/u2d/physics/physicstransform)): The transform to apply.

## InverseTransform(Span\<PolygonGeometry>, Matrix4x4, bool)

Inverse-Transform a batch of geometry in place. The minimum absolute value component from the inverted scale will be used to scale each [\_radius](/engine/6000.7/script-reference/unity/u2d/physics/polygongeometry/radius.md). A transform that degenerates the geometry hull writes an invalid (zero-vertex) polygon in its place.

```csharp
public static void InverseTransform(Span<PolygonGeometry> geometry, Matrix4x4 transform, bool scaleRadius)
```

### Parameters

**** (\[Span\<PolygonGeometry>]\(https\://learn.microsoft.com/dotnet/api/system.span-1)): The geometry to inverse-transform in place.**** (\[Matrix4x4]\(/engine/6000.7/script-reference/unityengine/matrix4x4)): The transform to apply.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Whether to scale the radius of the shape.
