math-rust-lib 0.2.3 → 0.2.4

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.
@@ -60,7 +60,6 @@ export class Vec3 {
60
60
  cross(other: Vec3): Vec3;
61
61
  scale(scalar: number): Vec3;
62
62
  length(): number;
63
- subtract(other: Vec3): Vec3;
64
63
  to_array(): Float32Array;
65
64
  normalize(): Vec3;
66
65
  x: number;
@@ -569,8 +569,7 @@ export class Vec3 {
569
569
  */
570
570
  add(other) {
571
571
  _assertClass(other, Vec3);
572
- var ptr0 = other.__destroy_into_raw();
573
- const ret = wasm.vec3_add(this.__wbg_ptr, ptr0);
572
+ const ret = wasm.vec3_add(this.__wbg_ptr, other.__wbg_ptr);
574
573
  return Vec3.__wrap(ret);
575
574
  }
576
575
  /**
@@ -636,15 +635,6 @@ export class Vec3 {
636
635
  const ret = wasm.vec3_length(this.__wbg_ptr);
637
636
  return ret;
638
637
  }
639
- /**
640
- * @param {Vec3} other
641
- * @returns {Vec3}
642
- */
643
- subtract(other) {
644
- _assertClass(other, Vec3);
645
- const ret = wasm.vec3_subtract(this.__wbg_ptr, other.__wbg_ptr);
646
- return Vec3.__wrap(ret);
647
- }
648
638
  /**
649
639
  * @returns {Float32Array}
650
640
  */
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.3",
4
+ "version": "0.2.4",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",