# inverse

> Returns the inverse of an AffineTransform.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Mathematics](/engine/6000.5/script-reference/unity/mathematics.md)
* **Assembly:** UnityEngine.MathematicsModule

## inverse(AffineTransform)

Returns the inverse of an AffineTransform.

```csharp
public static AffineTransform inverse(AffineTransform a)
```

### Parameters

**** (\[AffineTransform]\(/engine/6000.5/script-reference/unity/mathematics/affinetransform)): The AffineTransform to invert.

### Returns

| Type                                                                                    | Description                  |
| --------------------------------------------------------------------------------------- | ---------------------------- |
| [AffineTransform](/engine/6000.5/script-reference/unity/mathematics/affinetransform.md) | The inverse AffineTransform. |

## inverse(double2x2)

Returns the double2x2 full inverse of a double2x2 matrix.

```csharp
public static double2x2 inverse(double2x2 m)
```

### Parameters

**** (\[double2x2]\(/engine/6000.5/script-reference/unity/mathematics/double2x2)): Matrix to invert.

### Returns

| Type                                                                        | Description          |
| --------------------------------------------------------------------------- | -------------------- |
| [double2x2](/engine/6000.5/script-reference/unity/mathematics/double2x2.md) | The inverted matrix. |

## inverse(double3x3)

Returns the double3x3 full inverse of a double3x3 matrix.

```csharp
public static double3x3 inverse(double3x3 m)
```

### Parameters

**** (\[double3x3]\(/engine/6000.5/script-reference/unity/mathematics/double3x3)): Matrix to invert.

### Returns

| Type                                                                        | Description          |
| --------------------------------------------------------------------------- | -------------------- |
| [double3x3](/engine/6000.5/script-reference/unity/mathematics/double3x3.md) | The inverted matrix. |

## inverse(double4x4)

Returns the double4x4 full inverse of a double4x4 matrix.

```csharp
public static double4x4 inverse(double4x4 m)
```

### Parameters

**** (\[double4x4]\(/engine/6000.5/script-reference/unity/mathematics/double4x4)): Matrix to invert.

### Returns

| Type                                                                        | Description          |
| --------------------------------------------------------------------------- | -------------------- |
| [double4x4](/engine/6000.5/script-reference/unity/mathematics/double4x4.md) | The inverted matrix. |

## inverse(float2x2)

Returns the float2x2 full inverse of a float2x2 matrix.

```csharp
public static float2x2 inverse(float2x2 m)
```

### Parameters

**** (\[float2x2]\(/engine/6000.5/script-reference/unity/mathematics/float2x2)): Matrix to invert.

### Returns

| Type                                                                      | Description          |
| ------------------------------------------------------------------------- | -------------------- |
| [float2x2](/engine/6000.5/script-reference/unity/mathematics/float2x2.md) | The inverted matrix. |

## inverse(float3x3)

Returns the float3x3 full inverse of a float3x3 matrix.

```csharp
public static float3x3 inverse(float3x3 m)
```

### Parameters

**** (\[float3x3]\(/engine/6000.5/script-reference/unity/mathematics/float3x3)): Matrix to invert.

### Returns

| Type                                                                      | Description          |
| ------------------------------------------------------------------------- | -------------------- |
| [float3x3](/engine/6000.5/script-reference/unity/mathematics/float3x3.md) | The inverted matrix. |

## inverse(float4x4)

Returns the float4x4 full inverse of a float4x4 matrix.

```csharp
public static float4x4 inverse(float4x4 m)
```

### Parameters

**** (\[float4x4]\(/engine/6000.5/script-reference/unity/mathematics/float4x4)): Matrix to invert.

### Returns

| Type                                                                      | Description          |
| ------------------------------------------------------------------------- | -------------------- |
| [float4x4](/engine/6000.5/script-reference/unity/mathematics/float4x4.md) | The inverted matrix. |

## inverse(quaternion)

Returns the inverse of a quaternion value.

```csharp
public static quaternion inverse(quaternion q)
```

### Parameters

**** (\[quaternion]\(/engine/6000.5/script-reference/unity/mathematics/quaternion)): The quaternion to invert.

### Returns

| Type                                                                          | Description                                     |
| ----------------------------------------------------------------------------- | ----------------------------------------------- |
| [quaternion](/engine/6000.5/script-reference/unity/mathematics/quaternion.md) | The quaternion inverse of the input quaternion. |

## inverse(RigidTransform)

Returns the inverse of a RigidTransform.

```csharp
public static RigidTransform inverse(RigidTransform t)
```

### Parameters

**** (\[RigidTransform]\(/engine/6000.5/script-reference/unity/mathematics/rigidtransform)): The RigidTransform to invert.

### Returns

| Type                                                                                  | Description                 |
| ------------------------------------------------------------------------------------- | --------------------------- |
| [RigidTransform](/engine/6000.5/script-reference/unity/mathematics/rigidtransform.md) | The inverse RigidTransform. |
