@vertexvis/geometry 0.20.2 → 0.20.3-canary.1
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/bundle.cjs.js +8 -0
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +8 -0
- package/dist/bundle.esm.js.map +1 -1
- package/dist/cdn/bundle.esm.js +8 -0
- package/dist/cdn/bundle.esm.js.map +1 -1
- package/dist/cdn/bundle.esm.min.js +1 -1
- package/dist/cdn/bundle.esm.min.js.map +1 -1
- package/dist/cdn/matrix4.d.ts +4 -0
- package/dist/matrix4.d.ts +4 -0
- package/package.json +3 -3
package/dist/bundle.esm.js
CHANGED
|
@@ -738,6 +738,13 @@ function position(matrix, other) {
|
|
|
738
738
|
m[14] = other[14];
|
|
739
739
|
return m;
|
|
740
740
|
}
|
|
741
|
+
/**
|
|
742
|
+
* Returns true if the matrix is an identity matrix.
|
|
743
|
+
*/
|
|
744
|
+
function isIdentity(matrix) {
|
|
745
|
+
var identity = makeIdentity();
|
|
746
|
+
return matrix.every(function (v, i) { return v === identity[i]; });
|
|
747
|
+
}
|
|
741
748
|
/**
|
|
742
749
|
* Returns an object representation of a `Matrix4`.
|
|
743
750
|
*/
|
|
@@ -781,6 +788,7 @@ var matrix4 = /*#__PURE__*/Object.freeze({
|
|
|
781
788
|
transpose: transpose,
|
|
782
789
|
scale: scale$3,
|
|
783
790
|
position: position,
|
|
791
|
+
isIdentity: isIdentity,
|
|
784
792
|
toObject: toObject,
|
|
785
793
|
isType: isType$2
|
|
786
794
|
});
|