hytopia
Version:
The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.
72 lines (34 loc) • 877 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [server](./server.md) > [Matrix3](./server.matrix3.md) > [projection](./server.matrix3.projection.md)
## Matrix3.projection() method
Sets the current matrix to a orthographic projection matrix with the given bounds.
**Signature:**
```typescript
projection(width: number, height: number): Matrix3;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
width
</td><td>
number
</td><td>
The width of the projection.
</td></tr>
<tr><td>
height
</td><td>
number
</td><td>
The height of the projection.
</td></tr>
</tbody></table>
**Returns:**
[Matrix3](./server.matrix3.md)
The current matrix.