UNPKG

hytopia

Version:

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

54 lines (26 loc) 783 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; [equals](./server.quaternion.equals.md) ## Quaternion.equals() method Checks if the current quaternion is approximately equal to another quaternion. **Signature:** ```typescript equals(quaternion: Quaternion): boolean; ``` ## 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:** boolean `true` if the quaternions are approximately equal, `false` otherwise.