UNPKG

hytopia

Version:

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

56 lines (27 loc) 841 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [server](./server.md) &gt; [Matrix3](./server.matrix3.md) &gt; [fromQuaternion](./server.matrix3.fromquaternion.md) ## Matrix3.fromQuaternion() method Creates a new `Matrix3` instance from a `Quaternion` instance. **Signature:** ```typescript static fromQuaternion(quaternion: Quaternion): Matrix3; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> quaternion </td><td> [Quaternion](./server.quaternion.md) </td><td> The `Quaternion` instance to create the `Matrix3` instance from. </td></tr> </tbody></table> **Returns:** [Matrix3](./server.matrix3.md) A new `Matrix3` instance.