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.
- package/math_rust_lib.d.ts +1 -0
- package/math_rust_lib_bg.js +9 -0
- package/math_rust_lib_bg.wasm +0 -0
- package/package.json +1 -1
package/math_rust_lib.d.ts
CHANGED
package/math_rust_lib_bg.js
CHANGED
|
@@ -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
|
*/
|
package/math_rust_lib_bg.wasm
CHANGED
|
Binary file
|