@vertexvis/geometry 1.1.1-testing.3 → 1.1.1-testing.4

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.
@@ -248,9 +248,8 @@ var angle = /*#__PURE__*/Object.freeze({
248
248
  /**
249
249
  * Creates a 4x4 matrix from a set of row-major components.
250
250
  */
251
- function fromValues(
252
251
  // prettier-ignore
253
- m11, m12, m13, m14, m21, m22, m23, m24, m31, m32, m33, m34, m41, m42, m43, m44) {
252
+ function fromValues(m11, m12, m13, m14, m21, m22, m23, m24, m31, m32, m33, m34, m41, m42, m43, m44) {
254
253
  // prettier-ignore
255
254
  return [
256
255
  m11, m12, m13, m14,
@@ -631,15 +630,17 @@ function lookAt(m, position, target, up) {
631
630
  const y = cross(z, x);
632
631
  const res = [...m];
633
632
  // prettier-ignore
634
- res[0] = x.x;
635
- res[1] = x.y;
636
- res[2] = x.z;
637
- res[4] = y.x;
638
- res[5] = y.y;
639
- res[6] = y.z;
640
- res[8] = z.x;
641
- res[9] = z.y;
642
- res[10] = z.z;
633
+ {
634
+ res[0] = x.x;
635
+ res[1] = x.y;
636
+ res[2] = x.z;
637
+ res[4] = y.x;
638
+ res[5] = y.y;
639
+ res[6] = y.z;
640
+ res[8] = z.x;
641
+ res[9] = z.y;
642
+ res[10] = z.z;
643
+ }
643
644
  return res;
644
645
  }
645
646
  /**
@@ -683,18 +684,20 @@ function scale$4(matrix, scale) {
683
684
  const { x, y, z } = scale;
684
685
  const m = [...matrix];
685
686
  // prettier-ignore
686
- m[0] *= x;
687
- m[1] *= x;
688
- m[2] *= x;
689
- m[3] *= x;
690
- m[4] *= y;
691
- m[5] *= y;
692
- m[6] *= y;
693
- m[7] *= y;
694
- m[8] *= z;
695
- m[9] *= z;
696
- m[10] *= z;
697
- m[11] *= z;
687
+ {
688
+ m[0] *= x;
689
+ m[1] *= x;
690
+ m[2] *= x;
691
+ m[3] *= x;
692
+ m[4] *= y;
693
+ m[5] *= y;
694
+ m[6] *= y;
695
+ m[7] *= y;
696
+ m[8] *= z;
697
+ m[9] *= z;
698
+ m[10] *= z;
699
+ m[11] *= z;
700
+ }
698
701
  return m;
699
702
  }
700
703
  /**