# LerpRotation

> Calculate the normalized linear interpolation of this rotation and the specified rotation using the specified interval.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.LowLevelPhysics2D](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d.md)
* **Assembly:** UnityEngine.Physics2DModule

## LerpRotation(PhysicsRotate, float)

Calculate the normalized linear interpolation of this rotation and the specified rotation using the specified interval.

```csharp
public readonly PhysicsRotate LerpRotation(PhysicsRotate rotation, float interval)
```

### Parameters

**** (\[PhysicsRotate]\(/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsrotate)): The rotation to lerp with against the current rotation.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The lerp interval, typically in the range \[0, 1]. A value outside of this range performs normalized linear extrapolation.

### Returns

| Type                                                                                            | Description                                        |
| ----------------------------------------------------------------------------------------------- | -------------------------------------------------- |
| [PhysicsRotate](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsrotate.md) | The normalized linear interpolation/extrapolation. |

## LerpRotation(PhysicsRotate, PhysicsRotate, float)

Calculate the normalized linear interpolation between two rotations using the specified fraction.

```csharp
public static PhysicsRotate LerpRotation(PhysicsRotate rotationA, PhysicsRotate rotationB, float interval)
```

### Parameters

**** (\[PhysicsRotate]\(/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsrotate)): The rotation to lerp from.**** (\[PhysicsRotate]\(/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsrotate)): The rotation to lerp to.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The lerp interval, typically in the range \[0, 1]. A value outside of this range performs normalized linear extrapolation.

### Returns

| Type                                                                                            | Description                                        |
| ----------------------------------------------------------------------------------------------- | -------------------------------------------------- |
| [PhysicsRotate](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsrotate.md) | The normalized linear interpolation/extrapolation. |
