UNPKG

hytopia

Version:

The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.

72 lines (34 loc) 906 B
<!-- 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; [rotate](./server.matrix4.rotate.md) ## Matrix4.rotate() method Rotates the current matrix by an angle in radians around an axis. **Signature:** ```typescript rotate(angle: number, axis: Vector3): Matrix4; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> angle </td><td> number </td><td> The angle in radians to rotate the current matrix by. </td></tr> <tr><td> axis </td><td> [Vector3](./server.vector3.md) </td><td> The axis to rotate the current matrix around. </td></tr> </tbody></table> **Returns:** [Matrix4](./server.matrix4.md) The current matrix.