New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

wgpu-matrix

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wgpu-matrix - npm Package Compare versions

Comparing version 2.8.0 to 2.8.1

6

dist/2.x/wgpu-matrix.min.js

@@ -1,2 +0,2 @@

/* wgpu-matrix@2.8.0, license MIT */
/* wgpu-matrix@2.8.1, license MIT */
(function(M,aa){"object"===typeof exports&&"undefined"!==typeof module?aa(exports):"function"===typeof define&&define.amd?define(["exports"],aa):(M="undefined"!==typeof globalThis?globalThis:M||self,aa(M.wgpuMatrix={}))})(this,function(M){function aa(a){const b=y;y=a;return b}function ba(a=0,b=0){const c=new y(2);void 0!==a&&(c[0]=a,void 0!==b&&(c[1]=b));return c}function Da(a){const b=u;u=a;return b}function H(a,b,c){const d=new u(3);void 0!==a&&(d[0]=a,void 0!==b&&(d[1]=b,void 0!==c&&(d[2]=c)));

@@ -22,3 +22,3 @@ return d}function Ea(a,b,c){c=c||new y(2);c[0]=a[0]-b[0];c[1]=a[1]-b[1];return c}function Fa(a,b,c,d){d=d||new y(2);d[0]=a[0]+c*(b[0]-a[0]);d[1]=a[1]+c*(b[1]-a[1]);return d}function qa(a,b,c){c=c||new y(2);c[0]=a[0]*b;c[1]=a[1]*b;return c}function Ga(a,b){b=b||new y(2);b[0]=1/a[0];b[1]=1/a[1];return b}function Ha(a,b){return a[0]*b[0]+a[1]*b[1]}function ra(a){const b=a[0];a=a[1];return Math.sqrt(b*b+a*a)}function Ia(a){const b=a[0];a=a[1];return b*b+a*a}function Ja(a,b){const c=a[0]-b[0];a=a[1]-b[1];

a[2]/b[2];c[3]=a[3]/b[3];return c}function Gb(a,b,c){c=c||new A(4);Db(a,c);return ya(c,b,c)}let t=1E-6;var Hb=Object.freeze({__proto__:null,get EPSILON(){return t},degToRad:function(a){return a*Math.PI/180},euclideanModulo:function(a,b){return(a%b+b)%b},inverseLerp:function(a,b,c){return Math.abs(b-a)<t?a:(c-a)/(b-a)},lerp:function(a,b,c){return a+(b-a)*c},radToDeg:function(a){return 180*a/Math.PI},setEpsilon:function(a){const b=t;t=a;return b}});let y=Float32Array,u=Float32Array;var Ib=Object.freeze({__proto__:null,
add:function(a,b,c){c=c||new y(2);c[0]=a[0]+b[0];c[1]=a[1]+b[1];return c},addScaled:function(a,b,c,d){d=d||new y(2);d[0]=a[0]+b[0]*c;d[1]=a[1]+b[1]*c;return d},angle:function(a,b){var c=a[0];const d=a[1],e=a[0],f=a[1];a=(c=Math.sqrt(c*c+d*d)*Math.sqrt(e*e+f*f))&&Ha(a,b)/c;return Math.acos(a)},ceil:function(a,b){b=b||new y(2);b[0]=Math.ceil(a[0]);b[1]=Math.ceil(a[1]);return b},clamp:function(a,b=0,c=1,d){d=d||new y(2);d[0]=Math.min(c,Math.max(b,a[0]));d[1]=Math.min(c,Math.max(b,a[1]));return d},clone:sa,
add:function(a,b,c){c=c||new y(2);c[0]=a[0]+b[0];c[1]=a[1]+b[1];return c},addScaled:function(a,b,c,d){d=d||new y(2);d[0]=a[0]+b[0]*c;d[1]=a[1]+b[1]*c;return d},angle:function(a,b){var c=a[0];const d=a[1],e=b[0],f=b[1];a=(c=Math.sqrt(c*c+d*d)*Math.sqrt(e*e+f*f))&&Ha(a,b)/c;return Math.acos(a)},ceil:function(a,b){b=b||new y(2);b[0]=Math.ceil(a[0]);b[1]=Math.ceil(a[1]);return b},clamp:function(a,b=0,c=1,d){d=d||new y(2);d[0]=Math.min(c,Math.max(b,a[0]));d[1]=Math.min(c,Math.max(b,a[1]));return d},clone:sa,
copy:sa,create:ba,cross:function(a,b,c){c=c||new u(3);a=a[0]*b[1]-a[1]*b[0];c[0]=0;c[1]=0;c[2]=a;return c},dist:Ja,distSq:Ka,distance:Ja,distanceSq:Ka,div:Na,divScalar:function(a,b,c){c=c||new y(2);c[0]=a[0]/b;c[1]=a[1]/b;return c},divide:Na,dot:Ha,equals:function(a,b){return a[0]===b[0]&&a[1]===b[1]},equalsApproximately:function(a,b){return Math.abs(a[0]-b[0])<t&&Math.abs(a[1]-b[1])<t},floor:function(a,b){b=b||new y(2);b[0]=Math.floor(a[0]);b[1]=Math.floor(a[1]);return b},fromValues:ba,inverse:Ga,

@@ -35,3 +35,3 @@ invert:Ga,len:ra,lenSq:Ia,length:ra,lengthSq:Ia,lerp:Fa,lerpV:function(a,b,c,d){d=d||new y(2);d[0]=a[0]+c[0]*(b[0]-a[0]);d[1]=a[1]+c[1]*(b[1]-a[1]);return d},max:function(a,b,c){c=c||new y(2);c[0]=Math.max(a[0],b[0]);c[1]=Math.max(a[1],b[1]);return c},midpoint:function(a,b,c){c=c||new y(2);return Fa(a,b,.5,c)},min:function(a,b,c){c=c||new y(2);c[0]=Math.min(a[0],b[0]);c[1]=Math.min(a[1],b[1]);return c},mul:Ma,mulScalar:qa,multiply:Ma,negate:function(a,b){b=b||new y(2);b[0]=-a[0];b[1]=-a[1];return b},

k*b+q;return c},translation:function(a,b){b=b||G();b[0]=1;b[1]=0;b[2]=0;b[4]=0;b[5]=1;b[6]=0;b[8]=a[0];b[9]=a[1];b[10]=1;return b},transpose:function(a,b){b=b||G();if(b===a){var c=a[1];a[1]=a[4];a[4]=c;c=a[2];a[2]=a[8];a[8]=c;c=a[6];a[6]=a[9];a[9]=c;return b}c=a[1];const d=a[2],e=a[4],f=a[5],g=a[6],h=a[8],l=a[9],k=a[10];b[0]=a[0];b[1]=e;b[2]=h;b[4]=c;b[5]=f;b[6]=l;b[8]=d;b[9]=g;b[10]=k;return b},uniformScale:function(a,b,c){c=c||G();c[0]=b*a[0];c[1]=b*a[1];c[2]=b*a[2];c[4]=b*a[4];c[5]=b*a[5];c[6]=
b*a[6];a!==c&&(c[8]=a[8],c[9]=a[9],c[10]=a[10]);return c},uniformScaling:function(a,b){b=b||G();b[0]=a;b[1]=0;b[2]=0;b[4]=0;b[5]=a;b[6]=0;b[8]=0;b[9]=0;b[10]=1;return b}}),Kb=Object.freeze({__proto__:null,add:function(a,b,c){c=c||new u(3);c[0]=a[0]+b[0];c[1]=a[1]+b[1];c[2]=a[2]+b[2];return c},addScaled:function(a,b,c,d){d=d||new u(3);d[0]=a[0]+b[0]*c;d[1]=a[1]+b[1]*c;d[2]=a[2]+b[2]*c;return d},angle:function(a,b){var c=a[0];const d=a[1],e=a[2],f=a[0],g=a[1],h=a[2];a=(c=Math.sqrt(c*c+d*d+e*e)*Math.sqrt(f*
b*a[6];a!==c&&(c[8]=a[8],c[9]=a[9],c[10]=a[10]);return c},uniformScaling:function(a,b){b=b||G();b[0]=a;b[1]=0;b[2]=0;b[4]=0;b[5]=a;b[6]=0;b[8]=0;b[9]=0;b[10]=1;return b}}),Kb=Object.freeze({__proto__:null,add:function(a,b,c){c=c||new u(3);c[0]=a[0]+b[0];c[1]=a[1]+b[1];c[2]=a[2]+b[2];return c},addScaled:function(a,b,c,d){d=d||new u(3);d[0]=a[0]+b[0]*c;d[1]=a[1]+b[1]*c;d[2]=a[2]+b[2]*c;return d},angle:function(a,b){var c=a[0];const d=a[1],e=a[2],f=b[0],g=b[1],h=b[2];a=(c=Math.sqrt(c*c+d*d+e*e)*Math.sqrt(f*
f+g*g+h*h))&&va(a,b)/c;return Math.acos(a)},ceil:function(a,b){b=b||new u(3);b[0]=Math.ceil(a[0]);b[1]=Math.ceil(a[1]);b[2]=Math.ceil(a[2]);return b},clamp:function(a,b=0,c=1,d){d=d||new u(3);d[0]=Math.min(c,Math.max(b,a[0]));d[1]=Math.min(c,Math.max(b,a[1]));d[2]=Math.min(c,Math.max(b,a[2]));return d},clone:wa,copy:wa,create:H,cross:P,dist:Ya,distSq:Za,distance:Ya,distanceSq:Za,div:ab,divScalar:function(a,b,c){c=c||new u(3);c[0]=a[0]/b;c[1]=a[1]/b;c[2]=a[2]/b;return c},divide:ab,dot:va,equals:function(a,

@@ -38,0 +38,0 @@ b){return a[0]===b[0]&&a[1]===b[1]&&a[2]===b[2]},equalsApproximately:function(a,b){return Math.abs(a[0]-b[0])<t&&Math.abs(a[1]-b[1])<t&&Math.abs(a[2]-b[2])<t},floor:function(a,b){b=b||new u(3);b[0]=Math.floor(a[0]);b[1]=Math.floor(a[1]);b[2]=Math.floor(a[2]);return b},fromValues:H,getAxis:function(a,b,c){c=c||new u(3);b*=4;c[0]=a[b+0];c[1]=a[b+1];c[2]=a[b+2];return c},getScaling:function(a,b){b=b||new u(3);const c=a[0],d=a[1],e=a[2],f=a[4],g=a[5],h=a[6],l=a[8],k=a[9];a=a[10];b[0]=Math.sqrt(c*c+d*

{
"name": "wgpu-matrix",
"version": "2.8.0",
"version": "2.8.1",
"description": "fast matrix math library for WebGPU",

@@ -5,0 +5,0 @@ "main": "dist/2.x/wgpu-matrix.module.js",

@@ -104,3 +104,3 @@ # wgpu-matrix

mat4,
} from 'https://wgpu-matrix.org/dist/2.x/wgpu-matrix.module.min.js';
} from 'https://wgpu-matrix.org/dist/2.x/wgpu-matrix.module.js';

@@ -107,0 +107,0 @@ // ... etc ...

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc