Skip to content

Commit

Permalink
Bump dependencies and build
Browse files Browse the repository at this point in the history
  • Loading branch information
stefnotch committed Aug 19, 2019
1 parent 80a8a3c commit f7b13ca
Show file tree
Hide file tree
Showing 5 changed files with 104 additions and 25 deletions.
5 changes: 5 additions & 0 deletions .size-snapshot.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,10 @@
"bundled": 196746,
"minified": 48868,
"gzipped": 12030
},
"dist\\gl-matrix-min.js": {
"bundled": 196299,
"minified": 49338,
"gzipped": 12162
}
}
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.0.0
3.1.0
4 changes: 2 additions & 2 deletions dist/gl-matrix-min.js

Large diffs are not rendered by default.

92 changes: 83 additions & 9 deletions dist/gl-matrix.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
@fileoverview gl-matrix - High performance matrix and vector operations
@author Brandon Jones
@author Colin MacKenzie IV
@version 3.0.0
@version 3.1.0
Copyright (c) 2015-2019, Brandon Jones, Colin MacKenzie IV.
Expand Down Expand Up @@ -560,16 +560,16 @@ THE SOFTWARE.
* @description
* A mat2d contains six elements defined as:
* <pre>
* [a, c, tx,
* b, d, ty]
* [a, b, c,
* d, tx, ty]
* </pre>
* This is a short form for the 3x3 matrix:
* <pre>
* [a, c, tx,
* b, d, ty,
* 0, 0, 1]
* [a, b, 0,
* c, d, 0,
* tx, ty, 1]
* </pre>
* The last row is ignored so the array is shorter and operations are faster.
* The last column is ignored so the array is shorter and operations are faster.
*/

/**
Expand Down Expand Up @@ -5378,6 +5378,18 @@ THE SOFTWARE.

return rad;
}
/**
* Gets the angular distance between two unit quaternions
*
* @param {quat} a Origin unit quaternion
* @param {quat} b Destination unit quaternion
* @return {Number} Angle, in radians, between the two quaternions
*/

function getAngle(a, b) {
var dotproduct = dot$2(a, b);
return Math.acos(2 * dotproduct * dotproduct - 1);
}
/**
* Multiplies two quat's
*
Expand Down Expand Up @@ -5491,6 +5503,64 @@ THE SOFTWARE.
out[3] = Math.sqrt(Math.abs(1.0 - x * x - y * y - z * z));
return out;
}
/**
* Calculate the exponential of a unit quaternion.
*
* @param {quat} out the receiving quaternion
* @param {quat} a quat to calculate the exponential of
* @returns {quat} out
*/

function exp(out, a) {
var x = a[0],
y = a[1],
z = a[2],
w = a[3];
var r = Math.sqrt(x * x + y * y + z * z);
var et = Math.exp(w);
var s = r > 0 ? et * Math.sin(r) / r : 0;
out[0] = x * s;
out[1] = y * s;
out[2] = z * s;
out[3] = et * Math.cos(r);
return out;
}
/**
* Calculate the natural logarithm of a unit quaternion.
*
* @param {quat} out the receiving quaternion
* @param {quat} a quat to calculate the exponential of
* @returns {quat} out
*/

function ln(out, a) {
var x = a[0],
y = a[1],
z = a[2],
w = a[3];
var r = Math.sqrt(x * x + y * y + z * z);
var t = r > 0 ? Math.atan2(r, w) / r : 0;
out[0] = x * t;
out[1] = y * t;
out[2] = z * t;
out[3] = 0.5 * Math.log(x * x + y * y + z * z + w * w);
return out;
}
/**
* Calculate the scalar power of a unit quaternion.
*
* @param {quat} out the receiving quaternion
* @param {quat} a quat to calculate the exponential of
* @param {Number} b amount to scale the quaternion by
* @returns {quat} out
*/

function pow(out, a, b) {
ln(out, a);
scale$6(out, out, b);
exp(out, out);
return out;
}
/**
* Performs a spherical linear interpolation between two quat
*
Expand Down Expand Up @@ -5546,8 +5616,8 @@ THE SOFTWARE.
return out;
}
/**
* Generates a random quaternion
*
* Generates a random unit quaternion
*
* @param {quat} out the receiving quaternion
* @returns {quat} out
*/
Expand Down Expand Up @@ -5933,11 +6003,15 @@ THE SOFTWARE.
identity: identity$4,
setAxisAngle: setAxisAngle,
getAxisAngle: getAxisAngle,
getAngle: getAngle,
multiply: multiply$6,
rotateX: rotateX$2,
rotateY: rotateY$2,
rotateZ: rotateZ$2,
calculateW: calculateW,
exp: exp,
ln: ln,
pow: pow,
slerp: slerp,
random: random$2,
invert: invert$4,
Expand Down
26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "3.0.0",
"version": "3.1.0",
"name": "gl-matrix",
"description": "Javascript Matrix and Vector library for High Performance WebGL apps",
"private": true,
Expand Down Expand Up @@ -37,19 +37,19 @@
"prepare": "npm run build"
},
"devDependencies": {
"@babel/cli": "^7.2.3",
"@babel/core": "^7.3.4",
"@babel/preset-env": "^7.3.4",
"@babel/register": "^7.0.0",
"@babel/cli": "^7.5.5",
"@babel/core": "^7.5.5",
"@babel/preset-env": "^7.5.5",
"@babel/register": "^7.5.5",
"cross-env": "^5.2.0",
"del-cli": "^1.1.0",
"jsdoc": "^3.5.5",
"mocha": "^6.0.2",
"node-libs-browser": "^2.2.0",
"rollup": "^1.6.0",
"rollup-plugin-babel": "^4.3.2",
"rollup-plugin-size-snapshot": "^0.8.0",
"rollup-plugin-terser": "^4.0.4"
"del-cli": "^2.0.0",
"jsdoc": "^3.6.3",
"mocha": "^6.2.0",
"node-libs-browser": "^2.2.1",
"rollup": "^1.19.4",
"rollup-plugin-babel": "^4.3.3",
"rollup-plugin-size-snapshot": "^0.10.0",
"rollup-plugin-terser": "^5.1.1"
},
"dependencies": {}
}

0 comments on commit f7b13ca

Please sign in to comment.