@woosh/meep-engine 2.113.10 → 2.113.11
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.
- package/build/meep.cjs +13 -3
- package/build/meep.min.js +1 -1
- package/build/meep.module.js +13 -3
- package/package.json +1 -1
- package/src/core/geom/Vector2.d.ts.map +1 -1
- package/src/core/geom/Vector2.js +12 -2
package/build/meep.cjs
CHANGED
|
@@ -47396,7 +47396,7 @@ class Vector2 {
|
|
|
47396
47396
|
* @param {number[]} array
|
|
47397
47397
|
* @param {number} offset
|
|
47398
47398
|
*/
|
|
47399
|
-
|
|
47399
|
+
fromArray(array, offset = 0) {
|
|
47400
47400
|
this.set(
|
|
47401
47401
|
array[offset],
|
|
47402
47402
|
array[offset + 1]
|
|
@@ -47408,7 +47408,7 @@ class Vector2 {
|
|
|
47408
47408
|
* @param {number[]} array
|
|
47409
47409
|
* @param {number} offset
|
|
47410
47410
|
*/
|
|
47411
|
-
|
|
47411
|
+
toArray(array, offset = 0) {
|
|
47412
47412
|
array[offset] = this.x;
|
|
47413
47413
|
array[offset + 1] = this.y;
|
|
47414
47414
|
}
|
|
@@ -48021,7 +48021,17 @@ Vector2.one = Object.freeze(new Vector2(1, 1));
|
|
|
48021
48021
|
*/
|
|
48022
48022
|
Vector2.prototype.isVector2 = true;
|
|
48023
48023
|
|
|
48024
|
-
Vector2._distance = v2_distance;
|
|
48024
|
+
Vector2._distance = v2_distance;
|
|
48025
|
+
|
|
48026
|
+
/**
|
|
48027
|
+
* @deprecated use {@link Vector2#toArray} instead
|
|
48028
|
+
*/
|
|
48029
|
+
Vector2.prototype.writeToArray = Vector2.prototype.toArray;
|
|
48030
|
+
|
|
48031
|
+
/**
|
|
48032
|
+
* @deprecated use {@link Vector2#fromArray} instead
|
|
48033
|
+
*/
|
|
48034
|
+
Vector2.prototype.readFromArray = Vector2.prototype.fromArray;
|
|
48025
48035
|
|
|
48026
48036
|
/**
|
|
48027
48037
|
* NOTE, trying to keep to IANA registry: https://www.iana.org/assignments/media-types/media-types.xhtml
|