UNPKG

hytopia

Version:

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

56 lines (27 loc) 807 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [server](./server.md) &gt; [Matrix2](./server.matrix2.md) &gt; [equals](./server.matrix2.equals.md) ## Matrix2.equals() method Checks if the current matrix is approximately equal to another matrix. **Signature:** ```typescript equals(matrix2: Matrix2): boolean; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> matrix2 </td><td> [Matrix2](./server.matrix2.md) </td><td> The matrix to compare to the current matrix. </td></tr> </tbody></table> **Returns:** boolean `true` if the current matrix is equal to the provided matrix, `false` otherwise.