UNPKG

hytopia

Version:

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

72 lines (34 loc) 1 kB
<!-- 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; [fromRotationTranslation](./server.matrix4.fromrotationtranslation.md) ## Matrix4.fromRotationTranslation() method Creates a new `Matrix4` instance from a rotation and translation. **Signature:** ```typescript static fromRotationTranslation(rotation: Quaternion, translation: Vector3): Matrix4; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> rotation </td><td> [Quaternion](./server.quaternion.md) </td><td> The rotation of the matrix. </td></tr> <tr><td> translation </td><td> [Vector3](./server.vector3.md) </td><td> The translation of the matrix. </td></tr> </tbody></table> **Returns:** [Matrix4](./server.matrix4.md) A new `Matrix4` instance.