<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [server](./server.md) &gt; [Matrix4](./server.matrix4.md) &gt; [orthographic](./server.matrix4.orthographic.md)

## Matrix4.orthographic() method

Sets the current matrix to an orthographic projection matrix with the given bounds.

**Signature:**

```typescript
orthographic(left: number, right: number, bottom: number, top: number, near: number, far: number): Matrix4;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

left


</td><td>

number


</td><td>

The left bound of the frustum.


</td></tr>
<tr><td>

right


</td><td>

number


</td><td>

The right bound of the frustum.


</td></tr>
<tr><td>

bottom


</td><td>

number


</td><td>

The bottom bound of the frustum.


</td></tr>
<tr><td>

top


</td><td>

number


</td><td>

The top bound of the frustum.


</td></tr>
<tr><td>

near


</td><td>

number


</td><td>

The near bound of the frustum.


</td></tr>
<tr><td>

far


</td><td>

number


</td><td>

The far bound of the frustum.


</td></tr>
</tbody></table>
**Returns:**

[Matrix4](./server.matrix4.md)

The current matrix.

