@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/cdn/bundle.esm.js
CHANGED
|
@@ -772,6 +772,13 @@ function position(matrix, other) {
|
|
|
772
772
|
m[14] = other[14];
|
|
773
773
|
return m;
|
|
774
774
|
}
|
|
775
|
+
/**
|
|
776
|
+
* Returns true if the matrix is an identity matrix.
|
|
777
|
+
*/
|
|
778
|
+
function isIdentity(matrix) {
|
|
779
|
+
var identity = makeIdentity();
|
|
780
|
+
return matrix.every(function (v, i) { return v === identity[i]; });
|
|
781
|
+
}
|
|
775
782
|
/**
|
|
776
783
|
* Returns an object representation of a `Matrix4`.
|
|
777
784
|
*/
|
|
@@ -815,6 +822,7 @@ var matrix4 = /*#__PURE__*/Object.freeze({
|
|
|
815
822
|
transpose: transpose,
|
|
816
823
|
scale: scale$3,
|
|
817
824
|
position: position,
|
|
825
|
+
isIdentity: isIdentity,
|
|
818
826
|
toObject: toObject,
|
|
819
827
|
isType: isType$2
|
|
820
828
|
});
|