math-rust-lib 0.2.6 → 0.3.0

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.
@@ -182,8 +182,7 @@ export class Mat4 {
182
182
  */
183
183
  scale_in_place_by_vec3(scale) {
184
184
  _assertClass(scale, Vec3);
185
- var ptr0 = scale.__destroy_into_raw();
186
- const ret = wasm.mat4_scale_in_place_by_vec3(this.__wbg_ptr, ptr0);
185
+ const ret = wasm.mat4_scale_in_place_by_vec3(this.__wbg_ptr, scale.__wbg_ptr);
187
186
  return Mat4.__wrap(ret);
188
187
  }
189
188
  /**
@@ -239,12 +238,9 @@ export class Mat4 {
239
238
  */
240
239
  static look_at(eye, target, up) {
241
240
  _assertClass(eye, Vec3);
242
- var ptr0 = eye.__destroy_into_raw();
243
241
  _assertClass(target, Vec3);
244
- var ptr1 = target.__destroy_into_raw();
245
242
  _assertClass(up, Vec3);
246
- var ptr2 = up.__destroy_into_raw();
247
- const ret = wasm.mat4_look_at(ptr0, ptr1, ptr2);
243
+ const ret = wasm.mat4_look_at(eye.__wbg_ptr, target.__wbg_ptr, up.__wbg_ptr);
248
244
  return Mat4.__wrap(ret);
249
245
  }
250
246
  /**
@@ -268,8 +264,7 @@ export class Mat4 {
268
264
  */
269
265
  multiply(other) {
270
266
  _assertClass(other, Mat4);
271
- var ptr0 = other.__destroy_into_raw();
272
- const ret = wasm.mat4_multiply(this.__wbg_ptr, ptr0);
267
+ const ret = wasm.mat4_multiply(this.__wbg_ptr, other.__wbg_ptr);
273
268
  return Mat4.__wrap(ret);
274
269
  }
275
270
  /**
@@ -372,8 +367,7 @@ export class Quat {
372
367
  */
373
368
  rotate_vec(v) {
374
369
  _assertClass(v, Vec3);
375
- var ptr0 = v.__destroy_into_raw();
376
- const ret = wasm.quat_rotate_vec(this.__wbg_ptr, ptr0);
370
+ const ret = wasm.quat_rotate_vec(this.__wbg_ptr, v.__wbg_ptr);
377
371
  return Vec3.__wrap(ret);
378
372
  }
379
373
  /**
@@ -475,8 +469,7 @@ export class Quat {
475
469
  */
476
470
  multiply(other) {
477
471
  _assertClass(other, Quat);
478
- var ptr0 = other.__destroy_into_raw();
479
- const ret = wasm.quat_multiply(this.__wbg_ptr, ptr0);
472
+ const ret = wasm.quat_multiply(this.__wbg_ptr, other.__wbg_ptr);
480
473
  return Quat.__wrap(ret);
481
474
  }
482
475
  /**
@@ -578,8 +571,7 @@ export class Vec3 {
578
571
  */
579
572
  dot(other) {
580
573
  _assertClass(other, Vec3);
581
- var ptr0 = other.__destroy_into_raw();
582
- const ret = wasm.vec3_dot(this.__wbg_ptr, ptr0);
574
+ const ret = wasm.vec3_dot(this.__wbg_ptr, other.__wbg_ptr);
583
575
  return ret;
584
576
  }
585
577
  /**
@@ -616,8 +608,7 @@ export class Vec3 {
616
608
  */
617
609
  cross(other) {
618
610
  _assertClass(other, Vec3);
619
- var ptr0 = other.__destroy_into_raw();
620
- const ret = wasm.vec3_cross(this.__wbg_ptr, ptr0);
611
+ const ret = wasm.vec3_cross(this.__wbg_ptr, other.__wbg_ptr);
621
612
  return Vec3.__wrap(ret);
622
613
  }
623
614
  /**
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.6",
4
+ "version": "0.3.0",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",