UNPKG

hytopia

Version:

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

62 lines (29 loc) 679 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; [(constructor)](./server.vector2._constructor_.md) ## Vector2.(constructor) Constructs a new instance of the `Vector2` class **Signature:** ```typescript constructor(x: number, y: number); ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> x </td><td> number </td><td> </td></tr> <tr><td> y </td><td> number </td><td> </td></tr> </tbody></table>