# LerpRotation

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

## Definition

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

## 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.7/script-reference/unity/u2d/physics/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.7/script-reference/unity/u2d/physics/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.7/script-reference/unity/u2d/physics/physicsrotate)): The rotation to lerp from.**** (\[PhysicsRotate]\(/engine/6000.7/script-reference/unity/u2d/physics/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.7/script-reference/unity/u2d/physics/physicsrotate.md) | The normalized linear interpolation/extrapolation. |
