Skip to content

Commit

Permalink
Build dist
Browse files Browse the repository at this point in the history
  • Loading branch information
stefnotch committed Jan 4, 2019
1 parent a74ffaf commit 604d897
Show file tree
Hide file tree
Showing 4 changed files with 79 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .size-snapshot.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"dist/gl-matrix-min.js": {
"bundled": 195495,
"minified": 48824,
"gzipped": 11860
"bundled": 197064,
"minified": 49236,
"gzipped": 11970
}
}
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2015-2018, Brandon Jones, Colin MacKenzie IV.
Copyright (c) 2015-2019, Brandon Jones, Colin MacKenzie IV.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 2 additions & 2 deletions dist/gl-matrix-min.js

Large diffs are not rendered by default.

76 changes: 73 additions & 3 deletions dist/gl-matrix.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
@author Colin MacKenzie IV
@version 3.0.0-0
Copyright (c) 2015-2018, Brandon Jones, Colin MacKenzie IV.
Copyright (c) 2015-2019, Brandon Jones, Colin MacKenzie IV.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -4371,6 +4371,19 @@ THE SOFTWARE.
return Math.acos(cosine);
}
}
/**
* Set the components of a vec3 to zero
*
* @param {vec3} out the receiving vector
* @returns {vec3} out
*/

function zero(out) {
out[0] = 0.0;
out[1] = 0.0;
out[2] = 0.0;
return out;
}
/**
* Returns a string representation of a vector
*
Expand Down Expand Up @@ -4534,6 +4547,7 @@ THE SOFTWARE.
rotateY: rotateY$1,
rotateZ: rotateZ$1,
angle: angle,
zero: zero,
str: str$4,
exactEquals: exactEquals$4,
equals: equals$5,
Expand Down Expand Up @@ -4934,6 +4948,33 @@ THE SOFTWARE.
function dot$1(a, b) {
return a[0] * b[0] + a[1] * b[1] + a[2] * b[2] + a[3] * b[3];
}
/**
* Returns the cross-product of three vectors in a 4-dimensional space
*
* @param {vec4} result the receiving vector
* @param {vec4} U the first vector
* @param {vec4} V the second vector
* @param {vec4} W the third vector
* @returns {vec4} result
*/

function cross$1(out, u, v, w) {
var A = v[0] * w[1] - v[1] * w[0],
B = v[0] * w[2] - v[2] * w[0],
C = v[0] * w[3] - v[3] * w[0],
D = v[1] * w[2] - v[2] * w[1],
E = v[1] * w[3] - v[3] * w[1],
F = v[2] * w[3] - v[3] * w[2];
var G = u[0];
var H = u[1];
var I = u[2];
var J = u[3];
out[0] = H * F - I * E + J * D;
out[1] = -(G * F) + I * C - J * B;
out[2] = G * E - H * C + J * A;
out[3] = -(G * D) + H * B - I * A;
return out;
}
/**
* Performs a linear interpolation between two vec4's
*
Expand Down Expand Up @@ -5039,6 +5080,20 @@ THE SOFTWARE.
out[3] = a[3];
return out;
}
/**
* Set the components of a vec4 to zero
*
* @param {vec4} out the receiving vector
* @returns {vec4} out
*/

function zero$1(out) {
out[0] = 0.0;
out[1] = 0.0;
out[2] = 0.0;
out[3] = 0.0;
return out;
}
/**
* Returns a string representation of a vector
*
Expand Down Expand Up @@ -5194,10 +5249,12 @@ THE SOFTWARE.
inverse: inverse$1,
normalize: normalize$1,
dot: dot$1,
cross: cross$1,
lerp: lerp$1,
random: random$1,
transformMat4: transformMat4$1,
transformQuat: transformQuat$1,
zero: zero$1,
str: str$5,
exactEquals: exactEquals$5,
equals: equals$6,
Expand Down Expand Up @@ -7107,7 +7164,7 @@ THE SOFTWARE.
* @returns {vec3} out
*/

function cross$1(out, a, b) {
function cross$2(out, a, b) {
var z = a[0] * b[1] - a[1] * b[0];
out[0] = out[1] = 0;
out[2] = z;
Expand Down Expand Up @@ -7268,6 +7325,18 @@ THE SOFTWARE.
return Math.acos(cosine);
}
}
/**
* Set the components of a vec2 to zero
*
* @param {vec2} out the receiving vector
* @returns {vec2} out
*/

function zero$2(out) {
out[0] = 0.0;
out[1] = 0.0;
return out;
}
/**
* Returns a string representation of a vector
*
Expand Down Expand Up @@ -7415,7 +7484,7 @@ THE SOFTWARE.
inverse: inverse$2,
normalize: normalize$4,
dot: dot$4,
cross: cross$1,
cross: cross$2,
lerp: lerp$4,
random: random$3,
transformMat2: transformMat2,
Expand All @@ -7424,6 +7493,7 @@ THE SOFTWARE.
transformMat4: transformMat4$2,
rotate: rotate$4,
angle: angle$1,
zero: zero$2,
str: str$8,
exactEquals: exactEquals$8,
equals: equals$9,
Expand Down

0 comments on commit 604d897

Please sign in to comment.