# Ortho(float, float, float, float)

> Returns a float4x4 centered orthographic projection matrix.

## Definition

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

```csharp
public static float4x4 Ortho(float width, float height, float near, float far)
```

### Parameters

**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The width of the view volume.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The height of the view volume.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The distance to the near plane.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The distance to the far plane.

### Returns

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