UNPKG

hytopia

Version:

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

54 lines (26 loc) 750 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [server](./server.md) &gt; [Quaternion](./server.quaternion.md) &gt; [getAngle](./server.quaternion.getangle.md) ## Quaternion.getAngle() method Calculates and returns the angle between the current quaternion and another quaternion. **Signature:** ```typescript getAngle(quaternion: Quaternion): number; ``` ## 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> </td></tr> </tbody></table> **Returns:** number The angle in degrees.