hytopia 0.2.1 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (172) hide show
  1. package/docs/server.matrix2._constructor_.md +89 -0
  2. package/docs/server.matrix2.add.md +55 -0
  3. package/docs/server.matrix2.adjoint.md +19 -0
  4. package/docs/server.matrix2.clone.md +19 -0
  5. package/docs/server.matrix2.copy.md +55 -0
  6. package/docs/server.matrix2.create.md +19 -0
  7. package/docs/server.matrix2.determinant.md +13 -0
  8. package/docs/server.matrix2.equals.md +55 -0
  9. package/docs/server.matrix2.exactequals.md +55 -0
  10. package/docs/server.matrix2.frobeniusnormal.md +13 -0
  11. package/docs/server.matrix2.fromrotation.md +55 -0
  12. package/docs/server.matrix2.fromscaling.md +55 -0
  13. package/docs/server.matrix2.identity.md +19 -0
  14. package/docs/server.matrix2.invert.md +19 -0
  15. package/docs/server.matrix2.md +383 -0
  16. package/docs/server.matrix2.multiply.md +55 -0
  17. package/docs/server.matrix2.multiplyscalar.md +55 -0
  18. package/docs/server.matrix2.rotate.md +55 -0
  19. package/docs/server.matrix2.subtract.md +55 -0
  20. package/docs/server.matrix2.tostring.md +19 -0
  21. package/docs/server.matrix2.transpose.md +19 -0
  22. package/docs/server.matrix3._constructor_.md +159 -0
  23. package/docs/server.matrix3.add.md +55 -0
  24. package/docs/server.matrix3.adjoint.md +19 -0
  25. package/docs/server.matrix3.clone.md +19 -0
  26. package/docs/server.matrix3.copy.md +55 -0
  27. package/docs/server.matrix3.create.md +19 -0
  28. package/docs/server.matrix3.determinant.md +13 -0
  29. package/docs/server.matrix3.equals.md +55 -0
  30. package/docs/server.matrix3.exactequals.md +55 -0
  31. package/docs/server.matrix3.frobeniusnormal.md +13 -0
  32. package/docs/server.matrix3.frommatrix4.md +55 -0
  33. package/docs/server.matrix3.fromquaternion.md +55 -0
  34. package/docs/server.matrix3.fromrotation.md +55 -0
  35. package/docs/server.matrix3.fromscaling.md +55 -0
  36. package/docs/server.matrix3.fromtranslation.md +55 -0
  37. package/docs/server.matrix3.identity.md +19 -0
  38. package/docs/server.matrix3.invert.md +19 -0
  39. package/docs/server.matrix3.md +445 -0
  40. package/docs/server.matrix3.multiply.md +55 -0
  41. package/docs/server.matrix3.multiplyscalar.md +55 -0
  42. package/docs/server.matrix3.projection.md +71 -0
  43. package/docs/server.matrix3.rotate.md +55 -0
  44. package/docs/server.matrix3.subtract.md +55 -0
  45. package/docs/server.matrix3.tostring.md +19 -0
  46. package/docs/server.matrix3.transpose.md +19 -0
  47. package/docs/server.matrix4._constructor_.md +257 -0
  48. package/docs/server.matrix4.add.md +55 -0
  49. package/docs/server.matrix4.adjoint.md +19 -0
  50. package/docs/server.matrix4.clone.md +19 -0
  51. package/docs/server.matrix4.copy.md +55 -0
  52. package/docs/server.matrix4.create.md +19 -0
  53. package/docs/server.matrix4.determinant.md +13 -0
  54. package/docs/server.matrix4.equals.md +55 -0
  55. package/docs/server.matrix4.exactequals.md +55 -0
  56. package/docs/server.matrix4.frobeniusnormal.md +13 -0
  57. package/docs/server.matrix4.fromquaternion.md +55 -0
  58. package/docs/server.matrix4.fromrotation.md +71 -0
  59. package/docs/server.matrix4.fromrotationtranslation.md +71 -0
  60. package/docs/server.matrix4.fromrotationtranslationscale.md +87 -0
  61. package/docs/server.matrix4.fromrotationtranslationscaleorigin.md +103 -0
  62. package/docs/server.matrix4.fromscaling.md +55 -0
  63. package/docs/server.matrix4.fromtranslation.md +55 -0
  64. package/docs/server.matrix4.fromxrotation.md +55 -0
  65. package/docs/server.matrix4.fromyrotation.md +55 -0
  66. package/docs/server.matrix4.fromzrotation.md +55 -0
  67. package/docs/server.matrix4.frustrum.md +135 -0
  68. package/docs/server.matrix4.identity.md +19 -0
  69. package/docs/server.matrix4.invert.md +19 -0
  70. package/docs/server.matrix4.lookat.md +87 -0
  71. package/docs/server.matrix4.md +651 -0
  72. package/docs/server.matrix4.multiply.md +55 -0
  73. package/docs/server.matrix4.multiplyscalar.md +55 -0
  74. package/docs/server.matrix4.orthogonal.md +135 -0
  75. package/docs/server.matrix4.perspective.md +103 -0
  76. package/docs/server.matrix4.rotate.md +71 -0
  77. package/docs/server.matrix4.rotatex.md +55 -0
  78. package/docs/server.matrix4.rotatey.md +55 -0
  79. package/docs/server.matrix4.rotatez.md +55 -0
  80. package/docs/server.matrix4.scale.md +55 -0
  81. package/docs/server.matrix4.subtract.md +55 -0
  82. package/docs/server.matrix4.targetto.md +87 -0
  83. package/docs/server.matrix4.tostring.md +19 -0
  84. package/docs/server.matrix4.translate.md +55 -0
  85. package/docs/server.matrix4.transpose.md +19 -0
  86. package/docs/server.md +66 -0
  87. package/docs/server.quaternion.identity.md +19 -0
  88. package/docs/server.quaternion.length.md +13 -0
  89. package/docs/server.quaternion.logarithm.md +19 -0
  90. package/docs/server.quaternion.magnitude.md +1 -1
  91. package/docs/server.quaternion.md +114 -2
  92. package/docs/server.quaternion.power.md +55 -0
  93. package/docs/server.quaternion.randomize.md +19 -0
  94. package/docs/server.quaternion.setaxisangle.md +71 -0
  95. package/docs/server.quaternion.squaredlength.md +13 -0
  96. package/docs/server.quaternion.squaredmagnitude.md +1 -1
  97. package/docs/server.vector2._constructor_.md +61 -0
  98. package/docs/server.vector2.add.md +55 -0
  99. package/docs/server.vector2.angle.md +55 -0
  100. package/docs/server.vector2.ceil.md +19 -0
  101. package/docs/server.vector2.clone.md +19 -0
  102. package/docs/server.vector2.copy.md +55 -0
  103. package/docs/server.vector2.create.md +19 -0
  104. package/docs/server.vector2.cross.md +55 -0
  105. package/docs/server.vector2.distance.md +55 -0
  106. package/docs/server.vector2.divide.md +55 -0
  107. package/docs/server.vector2.dot.md +55 -0
  108. package/docs/server.vector2.equals.md +55 -0
  109. package/docs/server.vector2.exactequals.md +55 -0
  110. package/docs/server.vector2.floor.md +19 -0
  111. package/docs/server.vector2.invert.md +19 -0
  112. package/docs/server.vector2.length.md +13 -0
  113. package/docs/server.vector2.lerp.md +71 -0
  114. package/docs/server.vector2.magnitude.md +13 -0
  115. package/docs/server.vector2.max.md +55 -0
  116. package/docs/server.vector2.md +657 -0
  117. package/docs/server.vector2.min.md +55 -0
  118. package/docs/server.vector2.multiply.md +55 -0
  119. package/docs/server.vector2.negate.md +19 -0
  120. package/docs/server.vector2.normalize.md +19 -0
  121. package/docs/server.vector2.randomize.md +55 -0
  122. package/docs/server.vector2.rotate.md +71 -0
  123. package/docs/server.vector2.round.md +19 -0
  124. package/docs/server.vector2.scale.md +55 -0
  125. package/docs/server.vector2.scaleandadd.md +71 -0
  126. package/docs/server.vector2.squaredlength.md +13 -0
  127. package/docs/server.vector2.squaredmagnitude.md +13 -0
  128. package/docs/server.vector2.subtract.md +55 -0
  129. package/docs/server.vector2.tostring.md +19 -0
  130. package/docs/server.vector2.transformmatrix2.md +55 -0
  131. package/docs/server.vector2.transformmatrix3.md +55 -0
  132. package/docs/server.vector2.transformmatrix4.md +55 -0
  133. package/docs/server.vector2.x.md +15 -0
  134. package/docs/server.vector2.y.md +15 -0
  135. package/docs/server.vector2.zero.md +19 -0
  136. package/docs/server.vector2boolean.md +72 -0
  137. package/docs/server.vector2boolean.x.md +11 -0
  138. package/docs/server.vector2boolean.y.md +11 -0
  139. package/docs/server.vector2like.md +72 -0
  140. package/docs/server.vector2like.x.md +11 -0
  141. package/docs/server.vector2like.y.md +11 -0
  142. package/docs/server.vector3.create.md +19 -0
  143. package/docs/server.vector3.length.md +13 -0
  144. package/docs/server.vector3.magnitude.md +1 -1
  145. package/docs/server.vector3.md +144 -2
  146. package/docs/server.vector3.randomize.md +55 -0
  147. package/docs/server.vector3.scaleandadd.md +71 -0
  148. package/docs/server.vector3.squaredlength.md +13 -0
  149. package/docs/server.vector3.squaredmagnitude.md +1 -1
  150. package/docs/server.vector3.transformmatrix3.md +55 -0
  151. package/docs/server.vector3.transformmatrix4.md +55 -0
  152. package/docs/server.vector3.transformquaternion.md +55 -0
  153. package/docs/server.vector3.zero.md +19 -0
  154. package/examples/zombies-fps/classes/GameManager.ts +5 -3
  155. package/package.json +1 -1
  156. package/server.api.json +14293 -7345
  157. package/server.d.ts +917 -4
  158. package/server.js +89 -89
  159. package/examples/ai-agents/bun.lockb +0 -0
  160. package/examples/big-world/bun.lockb +0 -0
  161. package/examples/block-entity/bun.lockb +0 -0
  162. package/examples/child-entity/bun.lockb +0 -0
  163. package/examples/child-entity/package-lock.json +0 -30
  164. package/examples/custom-ui/bun.lockb +0 -0
  165. package/examples/entity-controller/bun.lockb +0 -0
  166. package/examples/entity-spawn/bun.lockb +0 -0
  167. package/examples/hole-in-wall-game/bun.lockb +0 -0
  168. package/examples/lighting/bun.lockb +0 -0
  169. package/examples/pathfinding/bun.lockb +0 -0
  170. package/examples/payload-game/bun.lockb +0 -0
  171. package/examples/wall-dodge-game/bun.lockb +0 -0
  172. package/examples/zombies-fps/bun.lockb +0 -0
@@ -0,0 +1,55 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [Matrix3](./server.matrix3.md) &gt; [fromTranslation](./server.matrix3.fromtranslation.md)
4
+
5
+ ## Matrix3.fromTranslation() method
6
+
7
+ Creates a new `Matrix3` instance from a translation of identity matrix.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ static fromTranslation(translation: Vector3): Matrix3;
13
+ ```
14
+
15
+ ## Parameters
16
+
17
+ <table><thead><tr><th>
18
+
19
+ Parameter
20
+
21
+
22
+ </th><th>
23
+
24
+ Type
25
+
26
+
27
+ </th><th>
28
+
29
+ Description
30
+
31
+
32
+ </th></tr></thead>
33
+ <tbody><tr><td>
34
+
35
+ translation
36
+
37
+
38
+ </td><td>
39
+
40
+ [Vector3](./server.vector3.md)
41
+
42
+
43
+ </td><td>
44
+
45
+ The translation of the matrix.
46
+
47
+
48
+ </td></tr>
49
+ </tbody></table>
50
+ **Returns:**
51
+
52
+ [Matrix3](./server.matrix3.md)
53
+
54
+ A new `Matrix3` instance.
55
+
@@ -0,0 +1,19 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [Matrix3](./server.matrix3.md) &gt; [identity](./server.matrix3.identity.md)
4
+
5
+ ## Matrix3.identity() method
6
+
7
+ Sets the current matrix to the identity matrix.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ identity(): Matrix3;
13
+ ```
14
+ **Returns:**
15
+
16
+ [Matrix3](./server.matrix3.md)
17
+
18
+ The current matrix.
19
+
@@ -0,0 +1,19 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [Matrix3](./server.matrix3.md) &gt; [invert](./server.matrix3.invert.md)
4
+
5
+ ## Matrix3.invert() method
6
+
7
+ Inverts the current matrix.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ invert(): Matrix3;
13
+ ```
14
+ **Returns:**
15
+
16
+ [Matrix3](./server.matrix3.md)
17
+
18
+ The current matrix.
19
+
@@ -0,0 +1,445 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [Matrix3](./server.matrix3.md)
4
+
5
+ ## Matrix3 class
6
+
7
+ Represents a 3x3 matrix.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ export default class Matrix3 extends Float32Array
13
+ ```
14
+ **Extends:** Float32Array
15
+
16
+ ## Remarks
17
+
18
+ All matrix methods result in mutation of the matrix instance. This class extends `Float32Array` to provide an efficient way to create and manipulate a 3x3 matrix. Various convenience methods are provided for common matrix operations.
19
+
20
+ ## Constructors
21
+
22
+ <table><thead><tr><th>
23
+
24
+ Constructor
25
+
26
+
27
+ </th><th>
28
+
29
+ Modifiers
30
+
31
+
32
+ </th><th>
33
+
34
+ Description
35
+
36
+
37
+ </th></tr></thead>
38
+ <tbody><tr><td>
39
+
40
+ [(constructor)(m00, m01, m02, m10, m11, m12, m20, m21, m22)](./server.matrix3._constructor_.md)
41
+
42
+
43
+ </td><td>
44
+
45
+
46
+ </td><td>
47
+
48
+ Constructs a new instance of the `Matrix3` class
49
+
50
+
51
+ </td></tr>
52
+ </tbody></table>
53
+
54
+ ## Properties
55
+
56
+ <table><thead><tr><th>
57
+
58
+ Property
59
+
60
+
61
+ </th><th>
62
+
63
+ Modifiers
64
+
65
+
66
+ </th><th>
67
+
68
+ Type
69
+
70
+
71
+ </th><th>
72
+
73
+ Description
74
+
75
+
76
+ </th></tr></thead>
77
+ <tbody><tr><td>
78
+
79
+ [determinant](./server.matrix3.determinant.md)
80
+
81
+
82
+ </td><td>
83
+
84
+ `readonly`
85
+
86
+
87
+ </td><td>
88
+
89
+ number
90
+
91
+
92
+ </td><td>
93
+
94
+ The determinant of the matrix.
95
+
96
+
97
+ </td></tr>
98
+ <tr><td>
99
+
100
+ [frobeniusNormal](./server.matrix3.frobeniusnormal.md)
101
+
102
+
103
+ </td><td>
104
+
105
+ `readonly`
106
+
107
+
108
+ </td><td>
109
+
110
+ number
111
+
112
+
113
+ </td><td>
114
+
115
+ The frobenius normal of the matrix.
116
+
117
+
118
+ </td></tr>
119
+ </tbody></table>
120
+
121
+ ## Methods
122
+
123
+ <table><thead><tr><th>
124
+
125
+ Method
126
+
127
+
128
+ </th><th>
129
+
130
+ Modifiers
131
+
132
+
133
+ </th><th>
134
+
135
+ Description
136
+
137
+
138
+ </th></tr></thead>
139
+ <tbody><tr><td>
140
+
141
+ [add(matrix3)](./server.matrix3.add.md)
142
+
143
+
144
+ </td><td>
145
+
146
+
147
+ </td><td>
148
+
149
+ Adds a matrix to the current matrix.
150
+
151
+
152
+ </td></tr>
153
+ <tr><td>
154
+
155
+ [adjoint()](./server.matrix3.adjoint.md)
156
+
157
+
158
+ </td><td>
159
+
160
+
161
+ </td><td>
162
+
163
+ Sets the adjugate of the current matrix.
164
+
165
+
166
+ </td></tr>
167
+ <tr><td>
168
+
169
+ [clone()](./server.matrix3.clone.md)
170
+
171
+
172
+ </td><td>
173
+
174
+
175
+ </td><td>
176
+
177
+ Clones the current matrix.
178
+
179
+
180
+ </td></tr>
181
+ <tr><td>
182
+
183
+ [copy(matrix3)](./server.matrix3.copy.md)
184
+
185
+
186
+ </td><td>
187
+
188
+
189
+ </td><td>
190
+
191
+ Copies a matrix to the current matrix.
192
+
193
+
194
+ </td></tr>
195
+ <tr><td>
196
+
197
+ [create()](./server.matrix3.create.md)
198
+
199
+
200
+ </td><td>
201
+
202
+ `static`
203
+
204
+
205
+ </td><td>
206
+
207
+ Creates a new `Matrix3` instance.
208
+
209
+
210
+ </td></tr>
211
+ <tr><td>
212
+
213
+ [equals(matrix3)](./server.matrix3.equals.md)
214
+
215
+
216
+ </td><td>
217
+
218
+
219
+ </td><td>
220
+
221
+ Checks if the current matrix is approximately equal to another matrix.
222
+
223
+
224
+ </td></tr>
225
+ <tr><td>
226
+
227
+ [exactEquals(matrix3)](./server.matrix3.exactequals.md)
228
+
229
+
230
+ </td><td>
231
+
232
+
233
+ </td><td>
234
+
235
+ Checks if the current matrix is exactly equal to another matrix.
236
+
237
+
238
+ </td></tr>
239
+ <tr><td>
240
+
241
+ [fromMatrix4(matrix4)](./server.matrix3.frommatrix4.md)
242
+
243
+
244
+ </td><td>
245
+
246
+ `static`
247
+
248
+
249
+ </td><td>
250
+
251
+ Creates a new `Matrix3` instance from a `Matrix4` instance.
252
+
253
+
254
+ </td></tr>
255
+ <tr><td>
256
+
257
+ [fromQuaternion(quaternion)](./server.matrix3.fromquaternion.md)
258
+
259
+
260
+ </td><td>
261
+
262
+ `static`
263
+
264
+
265
+ </td><td>
266
+
267
+ Creates a new `Matrix3` instance from a `Quaternion` instance.
268
+
269
+
270
+ </td></tr>
271
+ <tr><td>
272
+
273
+ [fromRotation(angle)](./server.matrix3.fromrotation.md)
274
+
275
+
276
+ </td><td>
277
+
278
+ `static`
279
+
280
+
281
+ </td><td>
282
+
283
+ Creates a new `Matrix3` instance from a rotation of identity matrix.
284
+
285
+
286
+ </td></tr>
287
+ <tr><td>
288
+
289
+ [fromScaling(scale)](./server.matrix3.fromscaling.md)
290
+
291
+
292
+ </td><td>
293
+
294
+ `static`
295
+
296
+
297
+ </td><td>
298
+
299
+ Creates a new `Matrix3` instance from a scale of identity matrix.
300
+
301
+
302
+ </td></tr>
303
+ <tr><td>
304
+
305
+ [fromTranslation(translation)](./server.matrix3.fromtranslation.md)
306
+
307
+
308
+ </td><td>
309
+
310
+ `static`
311
+
312
+
313
+ </td><td>
314
+
315
+ Creates a new `Matrix3` instance from a translation of identity matrix.
316
+
317
+
318
+ </td></tr>
319
+ <tr><td>
320
+
321
+ [identity()](./server.matrix3.identity.md)
322
+
323
+
324
+ </td><td>
325
+
326
+
327
+ </td><td>
328
+
329
+ Sets the current matrix to the identity matrix.
330
+
331
+
332
+ </td></tr>
333
+ <tr><td>
334
+
335
+ [invert()](./server.matrix3.invert.md)
336
+
337
+
338
+ </td><td>
339
+
340
+
341
+ </td><td>
342
+
343
+ Inverts the current matrix.
344
+
345
+
346
+ </td></tr>
347
+ <tr><td>
348
+
349
+ [multiply(matrix3)](./server.matrix3.multiply.md)
350
+
351
+
352
+ </td><td>
353
+
354
+
355
+ </td><td>
356
+
357
+ Multiplies the current matrix by another matrix.
358
+
359
+
360
+ </td></tr>
361
+ <tr><td>
362
+
363
+ [multiplyScalar(scalar)](./server.matrix3.multiplyscalar.md)
364
+
365
+
366
+ </td><td>
367
+
368
+
369
+ </td><td>
370
+
371
+ Multiplies each element of the current matrix by a scalar value.
372
+
373
+
374
+ </td></tr>
375
+ <tr><td>
376
+
377
+ [projection(width, height)](./server.matrix3.projection.md)
378
+
379
+
380
+ </td><td>
381
+
382
+
383
+ </td><td>
384
+
385
+ Sets the current matrix to a projection matrix with the given bounds.
386
+
387
+
388
+ </td></tr>
389
+ <tr><td>
390
+
391
+ [rotate(angle)](./server.matrix3.rotate.md)
392
+
393
+
394
+ </td><td>
395
+
396
+
397
+ </td><td>
398
+
399
+ Rotates the current matrix by an angle in radians.
400
+
401
+
402
+ </td></tr>
403
+ <tr><td>
404
+
405
+ [subtract(matrix3)](./server.matrix3.subtract.md)
406
+
407
+
408
+ </td><td>
409
+
410
+
411
+ </td><td>
412
+
413
+ Subtracts a matrix from the current matrix.
414
+
415
+
416
+ </td></tr>
417
+ <tr><td>
418
+
419
+ [toString()](./server.matrix3.tostring.md)
420
+
421
+
422
+ </td><td>
423
+
424
+
425
+ </td><td>
426
+
427
+ Returns a string representation of the current matrix.
428
+
429
+
430
+ </td></tr>
431
+ <tr><td>
432
+
433
+ [transpose()](./server.matrix3.transpose.md)
434
+
435
+
436
+ </td><td>
437
+
438
+
439
+ </td><td>
440
+
441
+ Transposes the current matrix.
442
+
443
+
444
+ </td></tr>
445
+ </tbody></table>
@@ -0,0 +1,55 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [Matrix3](./server.matrix3.md) &gt; [multiply](./server.matrix3.multiply.md)
4
+
5
+ ## Matrix3.multiply() method
6
+
7
+ Multiplies the current matrix by another matrix.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ multiply(matrix3: Matrix3): Matrix3;
13
+ ```
14
+
15
+ ## Parameters
16
+
17
+ <table><thead><tr><th>
18
+
19
+ Parameter
20
+
21
+
22
+ </th><th>
23
+
24
+ Type
25
+
26
+
27
+ </th><th>
28
+
29
+ Description
30
+
31
+
32
+ </th></tr></thead>
33
+ <tbody><tr><td>
34
+
35
+ matrix3
36
+
37
+
38
+ </td><td>
39
+
40
+ [Matrix3](./server.matrix3.md)
41
+
42
+
43
+ </td><td>
44
+
45
+ The matrix to multiply the current matrix by.
46
+
47
+
48
+ </td></tr>
49
+ </tbody></table>
50
+ **Returns:**
51
+
52
+ [Matrix3](./server.matrix3.md)
53
+
54
+ The current matrix.
55
+
@@ -0,0 +1,55 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [Matrix3](./server.matrix3.md) &gt; [multiplyScalar](./server.matrix3.multiplyscalar.md)
4
+
5
+ ## Matrix3.multiplyScalar() method
6
+
7
+ Multiplies each element of the current matrix by a scalar value.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ multiplyScalar(scalar: number): Matrix3;
13
+ ```
14
+
15
+ ## Parameters
16
+
17
+ <table><thead><tr><th>
18
+
19
+ Parameter
20
+
21
+
22
+ </th><th>
23
+
24
+ Type
25
+
26
+
27
+ </th><th>
28
+
29
+ Description
30
+
31
+
32
+ </th></tr></thead>
33
+ <tbody><tr><td>
34
+
35
+ scalar
36
+
37
+
38
+ </td><td>
39
+
40
+ number
41
+
42
+
43
+ </td><td>
44
+
45
+ The scalar value to multiply the current matrix elements by.
46
+
47
+
48
+ </td></tr>
49
+ </tbody></table>
50
+ **Returns:**
51
+
52
+ [Matrix3](./server.matrix3.md)
53
+
54
+ The current matrix.
55
+
@@ -0,0 +1,71 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [Matrix3](./server.matrix3.md) &gt; [projection](./server.matrix3.projection.md)
4
+
5
+ ## Matrix3.projection() method
6
+
7
+ Sets the current matrix to a projection matrix with the given bounds.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ projection(width: number, height: number): Matrix3;
13
+ ```
14
+
15
+ ## Parameters
16
+
17
+ <table><thead><tr><th>
18
+
19
+ Parameter
20
+
21
+
22
+ </th><th>
23
+
24
+ Type
25
+
26
+
27
+ </th><th>
28
+
29
+ Description
30
+
31
+
32
+ </th></tr></thead>
33
+ <tbody><tr><td>
34
+
35
+ width
36
+
37
+
38
+ </td><td>
39
+
40
+ number
41
+
42
+
43
+ </td><td>
44
+
45
+ The width of the projection.
46
+
47
+
48
+ </td></tr>
49
+ <tr><td>
50
+
51
+ height
52
+
53
+
54
+ </td><td>
55
+
56
+ number
57
+
58
+
59
+ </td><td>
60
+
61
+ The height of the projection.
62
+
63
+
64
+ </td></tr>
65
+ </tbody></table>
66
+ **Returns:**
67
+
68
+ [Matrix3](./server.matrix3.md)
69
+
70
+ The current matrix.
71
+