# LookRotation(float3, float3)

> Returns a quaternion view rotation given a unit length forward vector and a unit length up vector. The two input vectors are assumed to be unit length and not collinear. If these assumptions are not met use float3x3.LookRotationSafe instead.

## Definition

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

```csharp
public static quaternion LookRotation(float3 forward, float3 up)
```

### Parameters

**** (\[float3]\(/engine/6000.7/script-reference/unity/mathematics/float3)): The view forward direction.**** (\[float3]\(/engine/6000.7/script-reference/unity/mathematics/float3)): The view up direction.

### Returns

| Type                                                                          | Description                   |
| ----------------------------------------------------------------------------- | ----------------------------- |
| [quaternion](/engine/6000.7/script-reference/unity/mathematics/quaternion.md) | The quaternion view rotation. |
