math-rust-lib 0.2.4 → 0.2.5

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