@oliversalzburg/js-utils 0.0.18 → 0.0.19-dev.1

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 (239) hide show
  1. package/array.d.ts +39 -0
  2. package/{lib/array.js → array.js} +12 -13
  3. package/array.js.map +1 -0
  4. package/async.d.ts +28 -0
  5. package/{lib/async.js → async.js} +16 -10
  6. package/async.js.map +1 -0
  7. package/async.test.js +28 -0
  8. package/async.test.js.map +1 -0
  9. package/core.d.ts +36 -0
  10. package/core.js +3 -0
  11. package/core.js.map +1 -0
  12. package/{lib/dom → dom}/core.d.ts +8 -8
  13. package/{lib/dom → dom}/core.js +8 -8
  14. package/{lib/error-serializer.d.ts → error-serializer.d.ts} +5 -5
  15. package/{lib/error-serializer.js → error-serializer.js} +5 -5
  16. package/{lib/errors → errors}/AbstractError.d.ts +5 -5
  17. package/{lib/errors → errors}/AbstractError.js +5 -5
  18. package/{lib/errors → errors}/InternalError.d.ts +3 -3
  19. package/{lib/errors → errors}/InternalError.js +3 -3
  20. package/{lib/errors → errors}/InvalidArgumentError.d.ts +2 -2
  21. package/{lib/errors → errors}/InvalidArgumentError.js +2 -2
  22. package/{lib/errors → errors}/InvalidOperationError.d.ts +2 -2
  23. package/{lib/errors → errors}/InvalidOperationError.js +2 -2
  24. package/{lib/errors → errors}/NotImplementedError.d.ts +2 -2
  25. package/{lib/errors → errors}/NotImplementedError.js +2 -2
  26. package/{lib/errors → errors}/PermissionViolationError.d.ts +2 -2
  27. package/{lib/errors → errors}/PermissionViolationError.js +2 -2
  28. package/{lib/errors → errors}/ResourceConflictError.d.ts +2 -2
  29. package/{lib/errors → errors}/ResourceConflictError.js +2 -2
  30. package/{lib/errors → errors}/UnknownError.d.ts +2 -2
  31. package/{lib/errors → errors}/UnknownError.js +2 -2
  32. package/{lib/graphics → graphics}/canvas-sandbox.d.ts +13 -13
  33. package/{lib/graphics → graphics}/canvas-sandbox.js +9 -9
  34. package/{lib/graphics → graphics}/canvas.d.ts +30 -30
  35. package/{lib/graphics → graphics}/canvas.js +30 -30
  36. package/{lib/graphics → graphics}/core.d.ts +23 -23
  37. package/{lib/graphics → graphics}/core.js +23 -24
  38. package/{lib/graphics → graphics}/core.js.map +1 -1
  39. package/{lib/graphics → graphics}/render-loop.d.ts +3 -3
  40. package/{lib/graphics → graphics}/render-loop.js +3 -3
  41. package/{lib/math → math}/core.d.ts +19 -10
  42. package/{lib/math → math}/core.js +21 -10
  43. package/{lib/math → math}/core.js.map +1 -1
  44. package/{lib/math → math}/euler.d.ts +4 -4
  45. package/{lib/math → math}/euler.js +4 -4
  46. package/{lib/math → math}/matrix3.d.ts +34 -34
  47. package/{lib/math → math}/matrix3.js +34 -34
  48. package/{lib/math → math}/quaternion.d.ts +25 -25
  49. package/{lib/math → math}/quaternion.js +25 -25
  50. package/{lib/math → math}/transformation.d.ts +3 -3
  51. package/{lib/math → math}/transformation.js +3 -3
  52. package/{lib/math → math}/vector2.d.ts +40 -40
  53. package/{lib/math → math}/vector2.js +40 -40
  54. package/{lib/math → math}/vector3.d.ts +66 -66
  55. package/{lib/math → math}/vector3.js +66 -66
  56. package/{lib/math → math}/vector4.d.ts +38 -38
  57. package/{lib/math → math}/vector4.js +38 -38
  58. package/{lib/nil.d.ts → nil.d.ts} +11 -9
  59. package/{lib/nil.js → nil.js} +10 -9
  60. package/{lib/nil.js.map → nil.js.map} +1 -1
  61. package/package.json +16 -18
  62. package/{lib/random.d.ts → random.d.ts} +11 -17
  63. package/{lib/random.js → random.js} +11 -17
  64. package/random.js.map +1 -0
  65. package/{lib/sleep.d.ts → sleep.d.ts} +1 -1
  66. package/{lib/sleep.js → sleep.js} +1 -1
  67. package/{lib/string-formatter.d.ts → string-formatter.d.ts} +8 -4
  68. package/{lib/string-formatter.js → string-formatter.js} +8 -4
  69. package/string-formatter.js.map +1 -0
  70. package/string-formatter.test.d.ts +1 -0
  71. package/tsconfig.tsbuildinfo +1 -0
  72. package/LICENSES.md +0 -17
  73. package/_site/assets/highlight.css +0 -141
  74. package/_site/assets/main.js +0 -59
  75. package/_site/assets/navigation.js +0 -1
  76. package/_site/assets/search.js +0 -1
  77. package/_site/assets/style.css +0 -1383
  78. package/_site/classes/AbstractError.html +0 -67
  79. package/_site/classes/Canvas.html +0 -106
  80. package/_site/classes/CanvasSandbox.html +0 -91
  81. package/_site/classes/Euler.html +0 -217
  82. package/_site/classes/InternalError.html +0 -71
  83. package/_site/classes/InvalidArgumentError.html +0 -67
  84. package/_site/classes/InvalidOperationError.html +0 -67
  85. package/_site/classes/Matrix3.html +0 -167
  86. package/_site/classes/NotImplementedError.html +0 -66
  87. package/_site/classes/PermissionViolationError.html +0 -67
  88. package/_site/classes/Quaternion.html +0 -211
  89. package/_site/classes/Random.html +0 -90
  90. package/_site/classes/RenderLoop.html +0 -85
  91. package/_site/classes/ResourceConflictError.html +0 -66
  92. package/_site/classes/Transformation.html +0 -52
  93. package/_site/classes/UnexpectedNilError.html +0 -54
  94. package/_site/classes/UnknownError.html +0 -70
  95. package/_site/classes/Vector2.html +0 -159
  96. package/_site/classes/Vector3.html +0 -214
  97. package/_site/classes/Vector4.html +0 -156
  98. package/_site/functions/addVector2.html +0 -44
  99. package/_site/functions/addVector3.html +0 -44
  100. package/_site/functions/blend.html +0 -47
  101. package/_site/functions/blendAdditive.html +0 -47
  102. package/_site/functions/blendSubtractive.html +0 -47
  103. package/_site/functions/clamp.html +0 -45
  104. package/_site/functions/coalesceOnRejection.html +0 -51
  105. package/_site/functions/cosDeg.html +0 -43
  106. package/_site/functions/crossVector3.html +0 -44
  107. package/_site/functions/deg2rad.html +0 -43
  108. package/_site/functions/difference.html +0 -46
  109. package/_site/functions/distance.html +0 -46
  110. package/_site/functions/dotVector3.html +0 -44
  111. package/_site/functions/errorToJSON.html +0 -43
  112. package/_site/functions/errorToRecord.html +0 -43
  113. package/_site/functions/errorToSimpleSerializable.html +0 -43
  114. package/_site/functions/filterType.html +0 -46
  115. package/_site/functions/formatString.html +0 -46
  116. package/_site/functions/formatStringTemplate.html +0 -46
  117. package/_site/functions/fromRGB.html +0 -46
  118. package/_site/functions/fromRGBA.html +0 -46
  119. package/_site/functions/getA.html +0 -43
  120. package/_site/functions/getB.html +0 -43
  121. package/_site/functions/getDocumentElementTypeById.html +0 -46
  122. package/_site/functions/getDocumentElementTypeByIdStrict.html +0 -48
  123. package/_site/functions/getG.html +0 -43
  124. package/_site/functions/getR.html +0 -43
  125. package/_site/functions/intersect.html +0 -47
  126. package/_site/functions/is.html +0 -46
  127. package/_site/functions/isError.html +0 -43
  128. package/_site/functions/isInteger.html +0 -43
  129. package/_site/functions/isNil.html +0 -44
  130. package/_site/functions/isqrt.html +0 -43
  131. package/_site/functions/multiplyVector2.html +0 -44
  132. package/_site/functions/multiplyVector3.html +0 -44
  133. package/_site/functions/mustExist.html +0 -45
  134. package/_site/functions/nextPalette.html +0 -42
  135. package/_site/functions/prepareAsyncContext.html +0 -46
  136. package/_site/functions/putPixel32.html +0 -53
  137. package/_site/functions/putPixel32Add.html +0 -53
  138. package/_site/functions/putPixel32Sub.html +0 -53
  139. package/_site/functions/putSubPixel32.html +0 -47
  140. package/_site/functions/rad2deg.html +0 -43
  141. package/_site/functions/randomRange.html +0 -45
  142. package/_site/functions/safeRGBComponent.html +0 -43
  143. package/_site/functions/seedFromString.html +0 -44
  144. package/_site/functions/shuffleArray.html +0 -44
  145. package/_site/functions/sinDeg.html +0 -43
  146. package/_site/functions/sleep.html +0 -43
  147. package/_site/functions/somecolor.html +0 -43
  148. package/_site/functions/subtractVector2.html +0 -44
  149. package/_site/functions/subtractVector3.html +0 -44
  150. package/_site/functions/toGrayScale.html +0 -43
  151. package/_site/functions/unknownToError.html +0 -45
  152. package/_site/index.html +0 -44
  153. package/_site/interfaces/CanvasOptions.html +0 -44
  154. package/_site/interfaces/CanvasSandboxApplication.html +0 -60
  155. package/_site/interfaces/CanvasSandboxExpectedOptions.html +0 -48
  156. package/_site/interfaces/CanvasSandboxOptions.html +0 -45
  157. package/_site/interfaces/RenderLoopOptions.html +0 -46
  158. package/_site/modules.html +0 -134
  159. package/_site/types/AnyAsyncFunction.html +0 -41
  160. package/_site/types/AnyConstructor.html +0 -41
  161. package/_site/types/AnyFunction.html +0 -41
  162. package/_site/types/ConstructorOf.html +0 -41
  163. package/_site/types/FunctionReturning.html +0 -41
  164. package/_site/types/Maybe.html +0 -41
  165. package/_site/types/Mixin.html +0 -42
  166. package/_site/types/Nil.html +0 -42
  167. package/_site/types/RenderLoopCallback.html +0 -41
  168. package/_site/types/SerializedError.html +0 -41
  169. package/_site/variables/CANVAS_SANDBOX_DEFAULT_CSS.html +0 -41
  170. package/_site/variables/MS_PER_FRAME_60FPS.html +0 -42
  171. package/_site/variables/PALETTES.html +0 -41
  172. package/_site/variables/TWO_PI.html +0 -41
  173. package/_site/variables/random-1.html +0 -41
  174. package/coverage/base.css +0 -224
  175. package/coverage/block-navigation.js +0 -87
  176. package/coverage/bundle.js +0 -30
  177. package/coverage/favicon.png +0 -0
  178. package/coverage/index.html +0 -16
  179. package/coverage/prettify.css +0 -1
  180. package/coverage/prettify.js +0 -2
  181. package/coverage/sort-arrow-sprite.png +0 -0
  182. package/coverage/sorter.js +0 -196
  183. package/coverage/spa.css +0 -298
  184. package/coverage/string-formatter.ts.html +0 -187
  185. package/coverage/tmp/coverage-4186-1699218521999-0.json +0 -1
  186. package/coverage/tmp/coverage-4196-1699218521967-0.json +0 -1
  187. package/docs/assets/favicon.ico +0 -0
  188. package/lib/array.d.ts +0 -40
  189. package/lib/array.js.map +0 -1
  190. package/lib/async.d.ts +0 -27
  191. package/lib/async.js.map +0 -1
  192. package/lib/core.d.ts +0 -33
  193. package/lib/core.js +0 -12
  194. package/lib/core.js.map +0 -1
  195. package/lib/random.js.map +0 -1
  196. package/lib/string-formatter.js.map +0 -1
  197. package/mkdocs.yml +0 -52
  198. /package/{lib/error-serializer.test.d.ts → async.test.d.ts} +0 -0
  199. /package/{lib/dom → dom}/core.js.map +0 -0
  200. /package/{lib/dom → dom}/index.d.ts +0 -0
  201. /package/{lib/dom → dom}/index.js +0 -0
  202. /package/{lib/dom → dom}/index.js.map +0 -0
  203. /package/{lib/error-serializer.js.map → error-serializer.js.map} +0 -0
  204. /package/{lib/string-formatter.test.d.ts → error-serializer.test.d.ts} +0 -0
  205. /package/{lib/error-serializer.test.js → error-serializer.test.js} +0 -0
  206. /package/{lib/error-serializer.test.js.map → error-serializer.test.js.map} +0 -0
  207. /package/{lib/errors → errors}/AbstractError.js.map +0 -0
  208. /package/{lib/errors → errors}/InternalError.js.map +0 -0
  209. /package/{lib/errors → errors}/InvalidArgumentError.js.map +0 -0
  210. /package/{lib/errors → errors}/InvalidOperationError.js.map +0 -0
  211. /package/{lib/errors → errors}/NotImplementedError.js.map +0 -0
  212. /package/{lib/errors → errors}/PermissionViolationError.js.map +0 -0
  213. /package/{lib/errors → errors}/ResourceConflictError.js.map +0 -0
  214. /package/{lib/errors → errors}/UnknownError.js.map +0 -0
  215. /package/{lib/errors → errors}/index.d.ts +0 -0
  216. /package/{lib/errors → errors}/index.js +0 -0
  217. /package/{lib/errors → errors}/index.js.map +0 -0
  218. /package/{lib/graphics → graphics}/canvas-sandbox.js.map +0 -0
  219. /package/{lib/graphics → graphics}/canvas.js.map +0 -0
  220. /package/{lib/graphics → graphics}/index.d.ts +0 -0
  221. /package/{lib/graphics → graphics}/index.js +0 -0
  222. /package/{lib/graphics → graphics}/index.js.map +0 -0
  223. /package/{lib/graphics → graphics}/render-loop.js.map +0 -0
  224. /package/{lib/index.d.ts → index.d.ts} +0 -0
  225. /package/{lib/index.js → index.js} +0 -0
  226. /package/{lib/index.js.map → index.js.map} +0 -0
  227. /package/{lib/math → math}/euler.js.map +0 -0
  228. /package/{lib/math → math}/index.d.ts +0 -0
  229. /package/{lib/math → math}/index.js +0 -0
  230. /package/{lib/math → math}/index.js.map +0 -0
  231. /package/{lib/math → math}/matrix3.js.map +0 -0
  232. /package/{lib/math → math}/quaternion.js.map +0 -0
  233. /package/{lib/math → math}/transformation.js.map +0 -0
  234. /package/{lib/math → math}/vector2.js.map +0 -0
  235. /package/{lib/math → math}/vector3.js.map +0 -0
  236. /package/{lib/math → math}/vector4.js.map +0 -0
  237. /package/{lib/sleep.js.map → sleep.js.map} +0 -0
  238. /package/{lib/string-formatter.test.js → string-formatter.test.js} +0 -0
  239. /package/{lib/string-formatter.test.js.map → string-formatter.test.js.map} +0 -0
@@ -19,112 +19,112 @@ export declare class Vector3 {
19
19
  z: number;
20
20
  /**
21
21
  * Constructs a new {@linkcode Vector3}.
22
- * @param x The X component.
23
- * @param y The Y component.
24
- * @param z The Z component.
22
+ * @param x - The X component.
23
+ * @param y - The Y component.
24
+ * @param z - The Z component.
25
25
  */
26
26
  constructor(x?: number, y?: number, z?: number);
27
27
  /**
28
28
  * Creates a copy of another {@linkcode Vector3}.
29
- * @param vector The vector to copy.
29
+ * @param vector - The vector to copy.
30
30
  * @returns A new vector.
31
31
  */
32
32
  static fromVector3(vector: Readonly<Vector3>): Vector3;
33
33
  /**
34
34
  * Sets the vector to new coordinates.
35
- * @param vector The coordinates to set the vector to.
35
+ * @param vector - The coordinates to set the vector to.
36
36
  * @returns This instance.
37
37
  */
38
38
  set(vector: Readonly<Vector3>): this;
39
39
  /**
40
40
  * Sets the vector to new coordinates.
41
- * @param x The new X component for the vector.
42
- * @param y The new Y component for the vector.
43
- * @param z The new Z component for the vector.
41
+ * @param x - The new X component for the vector.
42
+ * @param y - The new Y component for the vector.
43
+ * @param z - The new Z component for the vector.
44
44
  * @returns This instance.
45
45
  */
46
46
  setXYZ(x: number, y: number, z: number): this;
47
47
  /**
48
48
  * Adds another vector to this vector.
49
- * @param vector The vector to add to this vector.
49
+ * @param vector - The vector to add to this vector.
50
50
  * @returns This instance.
51
51
  */
52
52
  add(vector: Readonly<Vector3>): this;
53
53
  /**
54
54
  * Adds another vector to this vector.
55
- * @param x The value to add to the X component.
56
- * @param y The value to add to the Y component.
57
- * @param z The value to add to the Z component.
55
+ * @param x - The value to add to the X component.
56
+ * @param y - The value to add to the Y component.
57
+ * @param z - The value to add to the Z component.
58
58
  * @returns This instance.
59
59
  */
60
60
  addXYZ(x: number, y: number, z: number): this;
61
61
  /**
62
62
  * Scales another vector and adds it to this vector.
63
- * @param vector The vector to add to this vector.
64
- * @param scale The scaling to apply to the input vector.
63
+ * @param vector - The vector to add to this vector.
64
+ * @param scale - The scaling to apply to the input vector.
65
65
  * @returns This instance.
66
66
  */
67
67
  addMultiply(vector: Readonly<Vector3>, scale: number): this;
68
68
  /**
69
69
  * Scales another vector and adds it to this vector.
70
- * @param x The value to add to the X component.
71
- * @param y The value to add to the Y component.
72
- * @param z The value to add to the Z component.
73
- * @param scale The scaling to apply to the input vector.
70
+ * @param x - The value to add to the X component.
71
+ * @param y - The value to add to the Y component.
72
+ * @param z - The value to add to the Z component.
73
+ * @param scale - The scaling to apply to the input vector.
74
74
  * @returns This instance.
75
75
  */
76
76
  addMultiplyXYZ(x: number, y: number, z: number, scale: number): this;
77
77
  /**
78
78
  * Subtracts another vector from this vector.
79
- * @param vector The vector to subtract from this vector.
79
+ * @param vector - The vector to subtract from this vector.
80
80
  * @returns This instance.
81
81
  */
82
82
  subtract(vector: Vector3): this;
83
83
  /**
84
84
  * Subtracts another vector from this vector.
85
- * @param x The value to subtract from the X component.
86
- * @param y The value to subtract from the Y component.
87
- * @param z The value to subtract from the Z component.
85
+ * @param x - The value to subtract from the X component.
86
+ * @param y - The value to subtract from the Y component.
87
+ * @param z - The value to subtract from the Z component.
88
88
  * @returns This instance.
89
89
  */
90
90
  subtractXYZ(x: number, y: number, z: number): this;
91
91
  /**
92
92
  * Multiplies this vector by another vector.
93
- * @param vector The vector to multiply with this vector.
93
+ * @param vector - The vector to multiply with this vector.
94
94
  * @returns This instance.
95
95
  */
96
96
  multiply(vector: Readonly<Vector3>): this;
97
97
  /**
98
98
  * Multiplies this vector by another vector.
99
- * @param x The value to multiply with the X component.
100
- * @param y The value to multiply with the Y component.
101
- * @param z The value to multiply with the Z component.
99
+ * @param x - The value to multiply with the X component.
100
+ * @param y - The value to multiply with the Y component.
101
+ * @param z - The value to multiply with the Z component.
102
102
  * @returns This instance.
103
103
  */
104
104
  multiplyXYZ(x: number, y: number, z: number): this;
105
105
  /**
106
106
  * Multiplies the vector by the given scale.
107
- * @param scale The scaling to apply to the vector.
107
+ * @param scale - The scaling to apply to the vector.
108
108
  * @returns This instance.
109
109
  */
110
110
  multiplyScale(scale: number): this;
111
111
  /**
112
112
  * Divides this vector by another vector.
113
- * @param vector The vector to divide this vector with.
113
+ * @param vector - The vector to divide this vector with.
114
114
  * @returns This instance.
115
115
  */
116
116
  divide(vector: Readonly<Vector3>): this;
117
117
  /**
118
118
  * Divides this vector by another vector.
119
- * @param x The value to divide the X component with.
120
- * @param y The value to divide the Y component with.
121
- * @param z The value to divide the Z component with.
119
+ * @param x - The value to divide the X component with.
120
+ * @param y - The value to divide the Y component with.
121
+ * @param z - The value to divide the Z component with.
122
122
  * @returns This instance.
123
123
  */
124
124
  divideXYZ(x: number, y: number, z: number): this;
125
125
  /**
126
126
  * Divides the vector by the given scale.
127
- * @param scale The scaling to apply to the vector.
127
+ * @param scale - The scaling to apply to the vector.
128
128
  * @returns This instance.
129
129
  */
130
130
  divideScale(scale: number): this;
@@ -140,8 +140,8 @@ export declare class Vector3 {
140
140
  invertMultiply(): this;
141
141
  /**
142
142
  * Clamps the components of the vector at the given boundary.
143
- * @param floor The lowest value to allow.
144
- * @param ceil The largest value to allow.
143
+ * @param floor - The lowest value to allow.
144
+ * @param ceil - The largest value to allow.
145
145
  * @returns This instance.
146
146
  */
147
147
  clamp(floor: number, ceil: number): this;
@@ -157,88 +157,88 @@ export declare class Vector3 {
157
157
  normalize(): this;
158
158
  /**
159
159
  * Compares two vectors.
160
- * @param vector The vector to compare this vector to.
160
+ * @param vector - The vector to compare this vector to.
161
161
  * @returns `true` if the vectors are idently, `false` otherwise.
162
162
  */
163
163
  compare(vector: Readonly<Vector3>): boolean;
164
164
  /**
165
165
  * Linearly moves this vector towards a target vector.
166
- * @param vector The target vector.
167
- * @param t The location on the scale, from `0` to `1`.
166
+ * @param vector - The target vector.
167
+ * @param t - The location on the scale, from `0` to `1`.
168
168
  * @returns This instance.
169
169
  */
170
170
  lerp(vector: Readonly<Vector3>, t: number): this;
171
171
  /**
172
172
  * Rotates the vector by the given rotation matrix.
173
- * @param matrix The rotation matrix to apply to the vector.
173
+ * @param matrix - The rotation matrix to apply to the vector.
174
174
  * @returns This instance.
175
175
  */
176
176
  rotate(matrix: Readonly<Matrix3>): this;
177
177
  /**
178
178
  * Inversely rotates the vector by the given rotation matrix.
179
- * @param matrix The rotation matrix to apply to the vector.
179
+ * @param matrix - The rotation matrix to apply to the vector.
180
180
  * @returns This instance.
181
181
  */
182
182
  rotateInverse(matrix: Readonly<Matrix3>): this;
183
183
  /**
184
184
  * Rotates the vector by the given rotation matrix around the given center.
185
- * @param center The center around which to rotate the vector.
186
- * @param matrix The rotation matrix to apply to the vector.
185
+ * @param center - The center around which to rotate the vector.
186
+ * @param matrix - The rotation matrix to apply to the vector.
187
187
  * @returns This instance.
188
188
  */
189
189
  rotateAround(center: Readonly<Vector3>, matrix: Readonly<Matrix3>): this;
190
190
  /**
191
191
  * Inversely rotates the vector by the given rotation matrix around the given center.
192
- * @param center The center around which to rotate the vector.
193
- * @param matrix The rotation matrix to apply to the vector.
192
+ * @param center - The center around which to rotate the vector.
193
+ * @param matrix - The rotation matrix to apply to the vector.
194
194
  * @returns This instance.
195
195
  */
196
196
  rotateAroundInverse(center: Readonly<Vector3>, matrix: Readonly<Matrix3>): this;
197
197
  /**
198
198
  * Transform the vector with a {@linkcode Transformation}.
199
- * @param transformation The transformation to apply.
199
+ * @param transformation - The transformation to apply.
200
200
  * @returns This instance.
201
201
  */
202
202
  transform(transformation: Readonly<Transformation>): this;
203
203
  /**
204
204
  * Inversely transform the vector with a {@linkcode Transformation}.
205
- * @param transformation The transformation to apply.
205
+ * @param transformation - The transformation to apply.
206
206
  * @returns This instance.
207
207
  */
208
208
  transformInverse(transformation: Readonly<Transformation>): this;
209
209
  /**
210
210
  * Returns the dot product between two vectors.
211
- * @param vector The other vector.
211
+ * @param vector - The other vector.
212
212
  * @returns The dot product between the two vectors.
213
213
  */
214
214
  dot(vector: Readonly<Vector3>): number;
215
215
  /**
216
216
  * Returns the dot product between two vectors.
217
- * @param x The X component of the other vector.
218
- * @param y The Y component of the other vector.
219
- * @param z The Z component of the other vector.
217
+ * @param x - The X component of the other vector.
218
+ * @param y - The Y component of the other vector.
219
+ * @param z - The Z component of the other vector.
220
220
  * @returns The dot product between the two vectors.
221
221
  */
222
222
  dotXYZ(x: number, y: number, z: number): number;
223
223
  /**
224
224
  * Calculates the dot product of this vector and another vector, and then
225
225
  * sets this vector to the result.
226
- * @param vector The other vector.
226
+ * @param vector - The other vector.
227
227
  * @returns This instance.
228
228
  */
229
229
  cross(vector: Readonly<Vector3>): this;
230
230
  /**
231
231
  * Makes this vector perpendicular to the other 3 vectors.
232
- * @param vector0 The first vector.
233
- * @param vector1 The second vector.
234
- * @param vector2 The third vector.
232
+ * @param vector0 - The first vector.
233
+ * @param vector1 - The second vector.
234
+ * @param vector2 - The third vector.
235
235
  * @returns This instance.
236
236
  */
237
237
  perpendicular(vector0: Readonly<Vector3>, vector1: Readonly<Vector3>, vector2: Readonly<Vector3>): this;
238
238
  /**
239
239
  * Reflects this vector against the given normal and sets this vector to
240
240
  * the result.
241
- * @param normal The normal against which to reflect.
241
+ * @param normal - The normal against which to reflect.
242
242
  * @returns This instance.
243
243
  */
244
244
  reflect(normal: Readonly<Vector3>): this;
@@ -246,8 +246,8 @@ export declare class Vector3 {
246
246
  * Calculates the reflection of this vector, based on the angle of incident
247
247
  * into a material with the given refractive index, according to Snell's law.
248
248
  * This vector is then set to the result.
249
- * @param normal The normal against which to reflect.
250
- * @param index The refractive index of the material.
249
+ * @param normal - The normal against which to reflect.
250
+ * @param index - The refractive index of the material.
251
251
  * @returns This instance.
252
252
  */
253
253
  fraction(normal: Readonly<Vector3>, index: number): this;
@@ -259,40 +259,40 @@ export declare class Vector3 {
259
259
  }
260
260
  /**
261
261
  * Adds two vectors and returns a new vector with the result.
262
- * @param a The first input vector.
263
- * @param b The second input vector.
262
+ * @param a - The first input vector.
263
+ * @param b - The second input vector.
264
264
  * @returns A new {@linkcode Vector3}.
265
265
  * @group Math
266
266
  */
267
267
  export declare const addVector3: (a: Readonly<Vector3>, b: Readonly<Vector3>) => Vector3;
268
268
  /**
269
269
  * Multiplies two vectors and returns a new vector with the result.
270
- * @param a The first input vector.
271
- * @param b The second input vector.
270
+ * @param a - The first input vector.
271
+ * @param b - The second input vector.
272
272
  * @returns A new {@linkcode Vector3}.
273
273
  * @group Math
274
274
  */
275
275
  export declare const multiplyVector3: (a: Readonly<Vector3>, b: Readonly<Vector3>) => Vector3;
276
276
  /**
277
277
  * Subtracts two vectors and returns a new vector with the result.
278
- * @param a The first input vector.
279
- * @param b The second input vector.
278
+ * @param a - The first input vector.
279
+ * @param b - The second input vector.
280
280
  * @returns A new {@linkcode Vector3}.
281
281
  * @group Math
282
282
  */
283
283
  export declare const subtractVector3: (a: Readonly<Vector3>, b: Readonly<Vector3>) => Vector3;
284
284
  /**
285
285
  * Calculates the cross product between two vectors and returns a new vector with the result.
286
- * @param a The first input vector.
287
- * @param b The second input vector.
286
+ * @param a - The first input vector.
287
+ * @param b - The second input vector.
288
288
  * @returns A new vector, which is the cross product of the two input vectors.
289
289
  * @group Math
290
290
  */
291
291
  export declare const crossVector3: (a: Readonly<Vector3>, b: Readonly<Vector3>) => Vector3;
292
292
  /**
293
293
  * Calculates the dot product between two vectors.
294
- * @param a The first input vector.
295
- * @param b The second input vector.
294
+ * @param a - The first input vector.
295
+ * @param b - The second input vector.
296
296
  * @returns The dot product between the two vectors.
297
297
  * @group Math
298
298
  */