@vertexvis/geometry 0.21.1-testing.0 → 0.21.1-testing.2
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 +1 -27
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +1 -27
- package/dist/bundle.esm.js.map +1 -1
- package/dist/cdn/bundle.esm.js +1 -27
- package/dist/cdn/bundle.esm.js.map +1 -1
- package/dist/cdn/bundle.esm.min.js +2 -2
- package/dist/cdn/bundle.esm.min.js.map +1 -1
- package/dist/cdn/matrix4.d.ts +0 -14
- package/dist/cdn/vector3.d.ts +1 -0
- package/dist/matrix4.d.ts +0 -14
- package/dist/vector3.d.ts +1 -0
- package/package.json +3 -3
package/dist/bundle.esm.js
CHANGED
|
@@ -554,32 +554,6 @@ function makeLookAtView(position, lookAt, up) {
|
|
|
554
554
|
];
|
|
555
555
|
/* eslint-enable prettier/prettier */
|
|
556
556
|
}
|
|
557
|
-
/**
|
|
558
|
-
* Matrix becomes a combination of translation and rotation.
|
|
559
|
-
*
|
|
560
|
-
* Matrix becomes a combination of a translation to the position of 'eye' and a
|
|
561
|
-
* rotation matrix which orients an object to point towards 'center' along its
|
|
562
|
-
* z-axis. Use this function if you want an object to look at a point from
|
|
563
|
-
* another point in space.
|
|
564
|
-
*
|
|
565
|
-
* @param position The position of the object.
|
|
566
|
-
* @param lookAt The point which the object is looking at.
|
|
567
|
-
* @param up The direction which the object considers up.
|
|
568
|
-
* @returns A matrix.
|
|
569
|
-
*/
|
|
570
|
-
function makeLookAt(position, lookAt, up) {
|
|
571
|
-
var z = normalize(subtract(position, lookAt));
|
|
572
|
-
var x = normalize(cross(up, z));
|
|
573
|
-
var y = cross(z, x);
|
|
574
|
-
/* eslint-disable prettier/prettier */
|
|
575
|
-
return [
|
|
576
|
-
x.x, x.y, x.z, 0,
|
|
577
|
-
y.x, y.y, y.z, 0,
|
|
578
|
-
z.x, z.y, z.z, 0,
|
|
579
|
-
position.x, position.y, position.z, 1
|
|
580
|
-
];
|
|
581
|
-
/* eslint-enable prettier/prettier */
|
|
582
|
-
}
|
|
583
557
|
/**
|
|
584
558
|
* Returns the inverse of the given matrix. If the determinate of the matrix is
|
|
585
559
|
* zero, then a zero matrix is returned.
|
|
@@ -788,7 +762,6 @@ var matrix4 = /*#__PURE__*/Object.freeze({
|
|
|
788
762
|
makePerspective: makePerspective,
|
|
789
763
|
makeOrthographic: makeOrthographic,
|
|
790
764
|
makeLookAtView: makeLookAtView,
|
|
791
|
-
makeLookAt: makeLookAt,
|
|
792
765
|
invert: invert,
|
|
793
766
|
lookAt: lookAt,
|
|
794
767
|
multiply: multiply$2,
|
|
@@ -1467,6 +1440,7 @@ function rotateAboutAxis(angle, point, axisDirection, axisPosition) {
|
|
|
1467
1440
|
}
|
|
1468
1441
|
/**
|
|
1469
1442
|
* Returns a vector that is multiplied with a matrix.
|
|
1443
|
+
* Is it v*m or m*v?
|
|
1470
1444
|
*/
|
|
1471
1445
|
function transformMatrix$1(vector, m) {
|
|
1472
1446
|
var x = vector.x, y = vector.y, z = vector.z;
|