@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.
@@ -742,6 +742,13 @@ function position(matrix, other) {
742
742
  m[14] = other[14];
743
743
  return m;
744
744
  }
745
+ /**
746
+ * Returns true if the matrix is an identity matrix.
747
+ */
748
+ function isIdentity(matrix) {
749
+ var identity = makeIdentity();
750
+ return matrix.every(function (v, i) { return v === identity[i]; });
751
+ }
745
752
  /**
746
753
  * Returns an object representation of a `Matrix4`.
747
754
  */
@@ -785,6 +792,7 @@ var matrix4 = /*#__PURE__*/Object.freeze({
785
792
  transpose: transpose,
786
793
  scale: scale$3,
787
794
  position: position,
795
+ isIdentity: isIdentity,
788
796
  toObject: toObject,
789
797
  isType: isType$2
790
798
  });