# PerspectiveOffCenter(float, float, float, float, float, float)

> Returns a float4x4 off-center perspective projection matrix.

## Definition

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

```csharp
public static float4x4 PerspectiveOffCenter(float left, float right, float bottom, float top, float near, float far)
```

### Parameters

**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The x-coordinate of the left side of the clipping frustum at the near plane.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The x-coordinate of the right side of the clipping frustum at the near plane.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The y-coordinate of the bottom side of the clipping frustum at the near plane.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The y-coordinate of the top side of the clipping frustum at the near plane.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): Distance to the near plane. Must be greater than zero.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): Distance to the far plane. Must be greater than zero.

### Returns

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