UNPKG

hytopia

Version:

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

56 lines (27 loc) 777 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [server](./server.md) &gt; [Vector3](./server.vector3.md) &gt; [equals](./server.vector3.equals.md) ## Vector3.equals() method Checks if the current vector is approximately equal to another vector. **Signature:** ```typescript equals(vector3: Vector3): boolean; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> vector3 </td><td> [Vector3](./server.vector3.md) </td><td> The vector to compare to. </td></tr> </tbody></table> **Returns:** boolean A boolean indicating whether the two vectors are approximately equal.