@nativewrappers/fivem 0.0.32 → 0.0.33

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.
@@ -149,6 +149,13 @@ export declare class Vector {
149
149
  * @returns A new vector resulting from the operation.
150
150
  */
151
151
  private static operateAbsolute;
152
+ /**
153
+ * Adds two vectors or a scalar value to a vector.
154
+ * @param a - The first vector or scalar value.
155
+ * @param b - The second vector or scalar value.
156
+ * @returns A new vector with incremented components.
157
+ */
158
+ static addAbsolute<T extends VectorType, U extends VectorLike>(this: T, a: U, b: VectorLike | number): U;
152
159
  /**
153
160
  * Subtracts one vector from another or subtracts a scalar value from a vector.
154
161
  * @param a - The vector.
@@ -272,6 +279,10 @@ export declare class Vector {
272
279
  * @see Vector.divide
273
280
  */
274
281
  divide(v: VectorLike | number): this;
282
+ /**
283
+ * @see Vector.addAbsolute
284
+ */
285
+ addAbsolute(v: VectorLike): this;
275
286
  /**
276
287
  * @see Vector.subtractAbsolute
277
288
  */
@@ -163,6 +163,15 @@ export class Vector {
163
163
  w = operator(Math.abs(w), isNumber ? b : Math.abs(b.w ?? 0));
164
164
  return this.create(x, y, z, w);
165
165
  }
166
+ /**
167
+ * Adds two vectors or a scalar value to a vector.
168
+ * @param a - The first vector or scalar value.
169
+ * @param b - The second vector or scalar value.
170
+ * @returns A new vector with incremented components.
171
+ */
172
+ static addAbsolute(a, b) {
173
+ return this.operateAbsolute(a, b, (x, y) => x + y);
174
+ }
166
175
  /**
167
176
  * Subtracts one vector from another or subtracts a scalar value from a vector.
168
177
  * @param a - The vector.
@@ -377,6 +386,12 @@ export class Vector {
377
386
  divide(v) {
378
387
  return Vector.divide(this, v);
379
388
  }
389
+ /**
390
+ * @see Vector.addAbsolute
391
+ */
392
+ addAbsolute(v) {
393
+ return Vector.addAbsolute(this, v);
394
+ }
380
395
  /**
381
396
  * @see Vector.subtractAbsolute
382
397
  */
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "author": "Remco Troost <d0p3t>",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
- "version": "0.0.32",
7
+ "version": "0.0.33",
8
8
  "publishConfig": {
9
9
  "directory": "lib"
10
10
  },