@predy-js/math 0.1.83-beta.6 → 0.1.83

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/dist/index.js CHANGED
@@ -753,6 +753,12 @@ function vec3Create(v) {
753
753
  }
754
754
  return [0, 0, 0];
755
755
  }
756
+ function vec3MulVec3(out, a, b) {
757
+ out[0] = a[0] * b[0];
758
+ out[1] = a[1] * b[1];
759
+ out[2] = a[2] * b[2];
760
+ return out;
761
+ }
756
762
  function vec3AddVec3(out, a, b) {
757
763
  out[0] = a[0] + b[0];
758
764
  out[1] = a[1] + b[1];
@@ -955,6 +961,7 @@ exports.vec3Cross = vec3Cross;
955
961
  exports.vec3MulMat3 = vec3MulMat3;
956
962
  exports.vec3MulMat4 = vec3MulMat4;
957
963
  exports.vec3MulNum = vec3MulNum;
964
+ exports.vec3MulVec3 = vec3MulVec3;
958
965
  exports.vec3RotateByMat4 = vec3RotateByMat4;
959
966
  exports.vec3RotateByQuat = vec3RotateByQuat;
960
967
  exports.vec3TranslateByMat4 = vec3TranslateByMat4;
package/dist/index.mjs CHANGED
@@ -749,6 +749,12 @@ function vec3Create(v) {
749
749
  }
750
750
  return [0, 0, 0];
751
751
  }
752
+ function vec3MulVec3(out, a, b) {
753
+ out[0] = a[0] * b[0];
754
+ out[1] = a[1] * b[1];
755
+ out[2] = a[2] * b[2];
756
+ return out;
757
+ }
752
758
  function vec3AddVec3(out, a, b) {
753
759
  out[0] = a[0] + b[0];
754
760
  out[1] = a[1] + b[1];
@@ -910,4 +916,4 @@ function quatStar(out, quat) {
910
916
  return out;
911
917
  }
912
918
 
913
- export { NumberEpsilon, clamp, ensureVec3, getMat4TR, getMat4TRS, invertMat4, isZeroVec, mat3FromQuat, mat3FromRotation, mat3FromRotationZ, mat3MulMat3, mat3NormalFromMat4, mat3Rotate, mat3Scale, mat3Translate, mat3create, mat4Clone, mat4Determinate, mat4create, mat4fromRotationTranslationScale, mat4identity, mat4invert, mat4multiply, mat4perspective, mat4rotate, mat4scale, mat4translate, quatCreate, quatEquals, quatFromRotation, quatMultiply, quatStar, rotateVec2, rotationFromMat3, vec2TransformByMat3, vec3AddVec3, vec3Create, vec3Cross, vec3MulMat3, vec3MulMat4, vec3MulNum, vec3RotateByMat4, vec3RotateByQuat, vec3TranslateByMat4, vecAdd, vecAddCombine, vecAssign, vecDot, vecFill, vecMinus, vecMulCombine, vecMulScalar, vecNormalize, vecSquareDistance };
919
+ export { NumberEpsilon, clamp, ensureVec3, getMat4TR, getMat4TRS, invertMat4, isZeroVec, mat3FromQuat, mat3FromRotation, mat3FromRotationZ, mat3MulMat3, mat3NormalFromMat4, mat3Rotate, mat3Scale, mat3Translate, mat3create, mat4Clone, mat4Determinate, mat4create, mat4fromRotationTranslationScale, mat4identity, mat4invert, mat4multiply, mat4perspective, mat4rotate, mat4scale, mat4translate, quatCreate, quatEquals, quatFromRotation, quatMultiply, quatStar, rotateVec2, rotationFromMat3, vec2TransformByMat3, vec3AddVec3, vec3Create, vec3Cross, vec3MulMat3, vec3MulMat4, vec3MulNum, vec3MulVec3, vec3RotateByMat4, vec3RotateByQuat, vec3TranslateByMat4, vecAdd, vecAddCombine, vecAssign, vecDot, vecFill, vecMinus, vecMulCombine, vecMulScalar, vecNormalize, vecSquareDistance };
package/dist/vec3.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import type { vec3, mat4, mat3 } from '@predy-js/render-interface';
2
2
  import type { vec4 } from '@predy-js/render-interface';
3
3
  export declare function vec3Create(v?: vec3): vec3;
4
+ export declare function vec3MulVec3(out: vec3, a: vec3, b: vec3): vec3;
4
5
  export declare function vec3AddVec3(out: vec3, a: vec3, b: vec3): vec3;
5
6
  export declare function vec3Cross(out: vec3, a: vec3, b: vec3): vec3;
6
7
  export declare function vec3MulMat4(out: vec3, vec3: vec3, mat4: mat4): vec3;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@predy-js/math",
3
- "version": "0.1.83-beta.6",
3
+ "version": "0.1.83",
4
4
  "description": "Mars JSON Specification",
5
5
  "module": "./dist/index.mjs",
6
6
  "main": "./dist/index.js",
@@ -28,7 +28,7 @@
28
28
  "prepublishOnly": "npm run build"
29
29
  },
30
30
  "devDependencies": {
31
- "@predy-js/render-interface": "0.1.83-beta.6",
31
+ "@predy-js/render-interface": "0.1.83",
32
32
  "@commitlint/cli": "^13.2.1",
33
33
  "@commitlint/config-conventional": "^13.2.0",
34
34
  "@rollup/plugin-commonjs": "^21.0.3",