UNPKG

hytopia

Version:

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

56 lines (27 loc) 784 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; [multiplyScalar](./server.matrix2.multiplyscalar.md) ## Matrix2.multiplyScalar() method Multiplies each element of the current matrix by a scalar value. **Signature:** ```typescript multiplyScalar(scalar: number): Matrix2; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> scalar </td><td> number </td><td> The scalar value to multiply the current matrix elements by. </td></tr> </tbody></table> **Returns:** [Matrix2](./server.matrix2.md) The current matrix.