function equivalent(cssTransform1, cssTransform2) {
  const mat1 = fromString(cssTransform1);
  const mat2 = fromString(cssTransform2);
  for (let i = 0; i < 6; ++i) {
    if (Math.round((mat1[i] - mat2[i]) * matrixPrecision[i]) !== 0) {
      return false;
    }
  }
  return true;
}
Compare two matrices for equality.
@param {!string} cssTransform1 A CSS transform matrix string.
@param {!string} cssTransform2 A CSS transform matrix string.
@return {boolean} The two matrices are equal.