math-rust-lib 0.2.1 → 0.2.2

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.
@@ -641,9 +641,10 @@ export class Vec3 {
641
641
  * @returns {Vec3}
642
642
  */
643
643
  subtract(other) {
644
+ const ptr = this.__destroy_into_raw();
644
645
  _assertClass(other, Vec3);
645
646
  var ptr0 = other.__destroy_into_raw();
646
- const ret = wasm.vec3_subtract(this.__wbg_ptr, ptr0);
647
+ const ret = wasm.vec3_subtract(ptr, ptr0);
647
648
  return Vec3.__wrap(ret);
648
649
  }
649
650
  /**
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "math-rust-lib",
3
3
  "type": "module",
4
- "version": "0.2.1",
4
+ "version": "0.2.2",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",