# Inverse

> Returns the Inverse of rotation.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.7/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

## Inverse(Quaternion)

Returns the Inverse of `rotation`.

```csharp
public static Quaternion Inverse(Quaternion rotation)
```

### Parameters

**** (\[Quaternion]\(/engine/6000.7/script-reference/unityengine/quaternion)):&#x20;

### Returns

| Type                                                                    | Description |
| ----------------------------------------------------------------------- | ----------- |
| [Quaternion](/engine/6000.7/script-reference/unityengine/quaternion.md) |             |

### Examples

```csharp
using UnityEngine;

public class Example : MonoBehaviour
{
    // Sets this transform to have the opposite rotation of the target

    Transform target;
    void Update()
    {
        transform.rotation = Quaternion.Inverse(target.rotation);
    }
}
```

## Inverse(Quaternion)

Returns the Inverse of `rotation`.

```csharp
public static Quaternion Inverse(in Quaternion rotation)
```

### Parameters

**** (\[Quaternion]\(/engine/6000.7/script-reference/unityengine/quaternion)):&#x20;

### Returns

| Type                                                                    | Description |
| ----------------------------------------------------------------------- | ----------- |
| [Quaternion](/engine/6000.7/script-reference/unityengine/quaternion.md) |             |

### Examples

```csharp
using UnityEngine;

public class Example : MonoBehaviour
{
    // Sets this transform to have the opposite rotation of the target

    Transform target;
    void Update()
    {
        transform.rotation = Quaternion.Inverse(target.rotation);
    }
}
```
