# PerspectiveFov(float, float, float, float)

> Returns a float4x4 perspective projection matrix based on field of view.

## Definition

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

```csharp
public static float4x4 PerspectiveFov(float verticalFov, float aspect, float near, float far)
```

### Parameters

**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): Vertical Field of view in radians.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): X:Y aspect ratio.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): Distance to near plane. Must be greater than zero.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): Distance to far plane. Must be greater than zero.

### Returns

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