@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/cdn/bundle.esm.js
CHANGED
|
@@ -588,32 +588,6 @@ function makeLookAtView(position, lookAt, up) {
|
|
|
588
588
|
];
|
|
589
589
|
/* eslint-enable prettier/prettier */
|
|
590
590
|
}
|
|
591
|
-
/**
|
|
592
|
-
* Matrix becomes a combination of translation and rotation.
|
|
593
|
-
*
|
|
594
|
-
* Matrix becomes a combination of a translation to the position of 'eye' and a
|
|
595
|
-
* rotation matrix which orients an object to point towards 'center' along its
|
|
596
|
-
* z-axis. Use this function if you want an object to look at a point from
|
|
597
|
-
* another point in space.
|
|
598
|
-
*
|
|
599
|
-
* @param position The position of the object.
|
|
600
|
-
* @param lookAt The point which the object is looking at.
|
|
601
|
-
* @param up The direction which the object considers up.
|
|
602
|
-
* @returns A matrix.
|
|
603
|
-
*/
|
|
604
|
-
function makeLookAt(position, lookAt, up) {
|
|
605
|
-
var z = normalize(subtract(position, lookAt));
|
|
606
|
-
var x = normalize(cross(up, z));
|
|
607
|
-
var y = cross(z, x);
|
|
608
|
-
/* eslint-disable prettier/prettier */
|
|
609
|
-
return [
|
|
610
|
-
x.x, x.y, x.z, 0,
|
|
611
|
-
y.x, y.y, y.z, 0,
|
|
612
|
-
z.x, z.y, z.z, 0,
|
|
613
|
-
position.x, position.y, position.z, 1
|
|
614
|
-
];
|
|
615
|
-
/* eslint-enable prettier/prettier */
|
|
616
|
-
}
|
|
617
591
|
/**
|
|
618
592
|
* Returns the inverse of the given matrix. If the determinate of the matrix is
|
|
619
593
|
* zero, then a zero matrix is returned.
|
|
@@ -822,7 +796,6 @@ var matrix4 = /*#__PURE__*/Object.freeze({
|
|
|
822
796
|
makePerspective: makePerspective,
|
|
823
797
|
makeOrthographic: makeOrthographic,
|
|
824
798
|
makeLookAtView: makeLookAtView,
|
|
825
|
-
makeLookAt: makeLookAt,
|
|
826
799
|
invert: invert,
|
|
827
800
|
lookAt: lookAt,
|
|
828
801
|
multiply: multiply$2,
|
|
@@ -1501,6 +1474,7 @@ function rotateAboutAxis(angle, point, axisDirection, axisPosition) {
|
|
|
1501
1474
|
}
|
|
1502
1475
|
/**
|
|
1503
1476
|
* Returns a vector that is multiplied with a matrix.
|
|
1477
|
+
* Is it v*m or m*v?
|
|
1504
1478
|
*/
|
|
1505
1479
|
function transformMatrix$1(vector, m) {
|
|
1506
1480
|
var x = vector.x, y = vector.y, z = vector.z;
|