@limitlesspc/std 0.21.0 → 0.21.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.
|
@@ -915,11 +915,11 @@ var Vec2 = class _Vec2 extends Float32Array {
|
|
|
915
915
|
}
|
|
916
916
|
div(x, y) {
|
|
917
917
|
if (typeof x === "number") {
|
|
918
|
-
this.x
|
|
919
|
-
this.y
|
|
918
|
+
this.x /= x;
|
|
919
|
+
this.y /= y ?? x;
|
|
920
920
|
} else {
|
|
921
|
-
this.x
|
|
922
|
-
this.y
|
|
921
|
+
this.x /= x[0];
|
|
922
|
+
this.y /= x[1];
|
|
923
923
|
}
|
|
924
924
|
return this;
|
|
925
925
|
}
|
package/dist/events.js
CHANGED
package/dist/gfx/index.js
CHANGED
package/dist/math/index.js
CHANGED