UNPKG

hytopia

Version:

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

56 lines (27 loc) 743 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [server](./server.md) &gt; [Vector2](./server.vector2.md) &gt; [divide](./server.vector2.divide.md) ## Vector2.divide() method Divides the current vector by another vector. **Signature:** ```typescript divide(vector2: Vector2): Vector2; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> vector2 </td><td> [Vector2](./server.vector2.md) </td><td> The vector to divide the current vector by. </td></tr> </tbody></table> **Returns:** [Vector2](./server.vector2.md) The current vector.