@vertexvis/geometry 1.0.2-canary.0 → 1.0.2-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.
- package/dist/bundle.cjs +94 -96
- package/dist/bundle.cjs.map +1 -1
- package/dist/bundle.js +94 -94
- package/dist/bundle.js.map +1 -1
- package/dist/cdn/bundle.js +94 -94
- package/dist/cdn/bundle.js.map +1 -1
- package/dist/cdn/bundle.min.js +1 -1
- package/dist/cdn/bundle.min.js.map +1 -1
- package/package.json +4 -4
package/dist/cdn/bundle.js
CHANGED
|
@@ -172,21 +172,21 @@ function fromJson$5(json) {
|
|
|
172
172
|
|
|
173
173
|
var point = /*#__PURE__*/Object.freeze({
|
|
174
174
|
__proto__: null,
|
|
175
|
+
add: add$1,
|
|
175
176
|
create: create$d,
|
|
176
|
-
polar: polar,
|
|
177
177
|
distance: distance$2,
|
|
178
|
-
|
|
179
|
-
add: add$1,
|
|
178
|
+
fromJson: fromJson$5,
|
|
180
179
|
isEqual: isEqual$3,
|
|
181
180
|
lerp: lerp$1,
|
|
182
|
-
negate: negate$1,
|
|
183
|
-
scale: scale$5,
|
|
184
|
-
scaleProportional: scaleProportional,
|
|
185
181
|
magnitude: magnitude$2,
|
|
186
|
-
|
|
182
|
+
negate: negate$1,
|
|
187
183
|
normalDirectionVector: normalDirectionVector,
|
|
184
|
+
normalizeVector: normalizeVector,
|
|
188
185
|
orthogonalVector: orthogonalVector,
|
|
189
|
-
|
|
186
|
+
polar: polar,
|
|
187
|
+
scale: scale$5,
|
|
188
|
+
scaleProportional: scaleProportional,
|
|
189
|
+
subtract: subtract$1
|
|
190
190
|
});
|
|
191
191
|
|
|
192
192
|
/**
|
|
@@ -774,30 +774,30 @@ function isType$2(obj) {
|
|
|
774
774
|
|
|
775
775
|
var matrix4 = /*#__PURE__*/Object.freeze({
|
|
776
776
|
__proto__: null,
|
|
777
|
-
fromValues: fromValues,
|
|
778
777
|
fromObject: fromObject,
|
|
778
|
+
fromValues: fromValues,
|
|
779
|
+
invert: invert,
|
|
780
|
+
isIdentity: isIdentity,
|
|
781
|
+
isType: isType$2,
|
|
782
|
+
lookAt: lookAt,
|
|
783
|
+
makeBasis: makeBasis,
|
|
784
|
+
makeFrustum: makeFrustum,
|
|
779
785
|
makeIdentity: makeIdentity,
|
|
780
|
-
|
|
781
|
-
|
|
786
|
+
makeLookAt: makeLookAt,
|
|
787
|
+
makeLookAtView: makeLookAtView,
|
|
788
|
+
makeOrthographic: makeOrthographic,
|
|
789
|
+
makePerspective: makePerspective,
|
|
782
790
|
makeRotation: makeRotation,
|
|
791
|
+
makeRotationAxis: makeRotationAxis,
|
|
783
792
|
makeScale: makeScale,
|
|
784
793
|
makeTRS: makeTRS,
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
makeFrustum: makeFrustum,
|
|
788
|
-
makePerspective: makePerspective,
|
|
789
|
-
makeOrthographic: makeOrthographic,
|
|
790
|
-
makeLookAtView: makeLookAtView,
|
|
791
|
-
makeLookAt: makeLookAt,
|
|
792
|
-
invert: invert,
|
|
793
|
-
lookAt: lookAt,
|
|
794
|
+
makeTranslation: makeTranslation,
|
|
795
|
+
makeZero: makeZero,
|
|
794
796
|
multiply: multiply$2,
|
|
795
|
-
transpose: transpose,
|
|
796
|
-
scale: scale$4,
|
|
797
797
|
position: position,
|
|
798
|
-
|
|
798
|
+
scale: scale$4,
|
|
799
799
|
toObject: toObject,
|
|
800
|
-
|
|
800
|
+
transpose: transpose
|
|
801
801
|
});
|
|
802
802
|
|
|
803
803
|
/**
|
|
@@ -955,8 +955,8 @@ var euler = /*#__PURE__*/Object.freeze({
|
|
|
955
955
|
__proto__: null,
|
|
956
956
|
create: create$c,
|
|
957
957
|
fromDegrees: fromDegrees,
|
|
958
|
-
fromRotationMatrix: fromRotationMatrix,
|
|
959
958
|
fromJson: fromJson$4,
|
|
959
|
+
fromRotationMatrix: fromRotationMatrix,
|
|
960
960
|
isType: isType$1
|
|
961
961
|
});
|
|
962
962
|
|
|
@@ -1157,15 +1157,15 @@ function isType(obj) {
|
|
|
1157
1157
|
var quaternion = /*#__PURE__*/Object.freeze({
|
|
1158
1158
|
__proto__: null,
|
|
1159
1159
|
create: create$b,
|
|
1160
|
-
fromJson: fromJson$3,
|
|
1161
|
-
normalize: normalize$1,
|
|
1162
|
-
magnitude: magnitude$1,
|
|
1163
|
-
scale: scale$3,
|
|
1164
1160
|
fromAxisAngle: fromAxisAngle,
|
|
1165
|
-
fromMatrixRotation: fromMatrixRotation,
|
|
1166
1161
|
fromEuler: fromEuler,
|
|
1162
|
+
fromJson: fromJson$3,
|
|
1163
|
+
fromMatrixRotation: fromMatrixRotation,
|
|
1164
|
+
isType: isType,
|
|
1165
|
+
magnitude: magnitude$1,
|
|
1167
1166
|
multiply: multiply$1,
|
|
1168
|
-
|
|
1167
|
+
normalize: normalize$1,
|
|
1168
|
+
scale: scale$3
|
|
1169
1169
|
});
|
|
1170
1170
|
|
|
1171
1171
|
function create$a() {
|
|
@@ -1549,42 +1549,42 @@ function transformNdcToWorldSpace(ndc, worldMatrix, projectionMatrixInverse) {
|
|
|
1549
1549
|
|
|
1550
1550
|
var vector3 = /*#__PURE__*/Object.freeze({
|
|
1551
1551
|
__proto__: null,
|
|
1552
|
+
add: add,
|
|
1553
|
+
angleTo: angleTo,
|
|
1554
|
+
back: back,
|
|
1552
1555
|
create: create$a,
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
right: right,
|
|
1560
|
-
up: up,
|
|
1556
|
+
cross: cross,
|
|
1557
|
+
distance: distance$1,
|
|
1558
|
+
distanceSquared: distanceSquared$1,
|
|
1559
|
+
dot: dot$1,
|
|
1560
|
+
down: down,
|
|
1561
|
+
eulerTo: eulerTo,
|
|
1561
1562
|
forward: forward,
|
|
1563
|
+
fromArray: fromArray,
|
|
1564
|
+
fromJson: fromJson$2,
|
|
1565
|
+
fromMatrixPosition: fromMatrixPosition,
|
|
1566
|
+
fromMatrixScale: fromMatrixScale,
|
|
1567
|
+
isEqual: isEqual$2,
|
|
1568
|
+
isValid: isValid$1,
|
|
1562
1569
|
left: left,
|
|
1563
|
-
|
|
1564
|
-
back: back,
|
|
1565
|
-
origin: origin,
|
|
1566
|
-
normalize: normalize,
|
|
1570
|
+
lerp: lerp,
|
|
1567
1571
|
magnitude: magnitude,
|
|
1568
1572
|
magnitudeSquared: magnitudeSquared,
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
subtract: subtract,
|
|
1573
|
+
max: max,
|
|
1574
|
+
min: min,
|
|
1572
1575
|
multiply: multiply,
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
eulerTo: eulerTo,
|
|
1576
|
+
negate: negate,
|
|
1577
|
+
normalize: normalize,
|
|
1578
|
+
origin: origin,
|
|
1577
1579
|
project: project,
|
|
1580
|
+
right: right,
|
|
1578
1581
|
rotateAboutAxis: rotateAboutAxis,
|
|
1582
|
+
scale: scale$2,
|
|
1583
|
+
subtract: subtract,
|
|
1584
|
+
toArray: toArray,
|
|
1579
1585
|
transformMatrix: transformMatrix$1,
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
isEqual: isEqual$2,
|
|
1583
|
-
max: max,
|
|
1584
|
-
min: min,
|
|
1585
|
-
negate: negate,
|
|
1586
|
-
lerp: lerp,
|
|
1587
|
-
transformNdcToWorldSpace: transformNdcToWorldSpace
|
|
1586
|
+
transformNdcToWorldSpace: transformNdcToWorldSpace,
|
|
1587
|
+
up: up
|
|
1588
1588
|
});
|
|
1589
1589
|
|
|
1590
1590
|
/**
|
|
@@ -1649,14 +1649,14 @@ function isValid(boundingBox) {
|
|
|
1649
1649
|
|
|
1650
1650
|
var boundingBox = /*#__PURE__*/Object.freeze({
|
|
1651
1651
|
__proto__: null,
|
|
1652
|
-
create: create$9,
|
|
1653
|
-
fromVectors: fromVectors,
|
|
1654
1652
|
center: center$3,
|
|
1653
|
+
create: create$9,
|
|
1655
1654
|
diagonal: diagonal,
|
|
1656
1655
|
epsilon: epsilon,
|
|
1657
|
-
|
|
1656
|
+
fromVectors: fromVectors,
|
|
1657
|
+
isValid: isValid,
|
|
1658
1658
|
lengths: lengths,
|
|
1659
|
-
|
|
1659
|
+
union: union
|
|
1660
1660
|
});
|
|
1661
1661
|
|
|
1662
1662
|
/**
|
|
@@ -1870,26 +1870,26 @@ function fromJson$1(json) {
|
|
|
1870
1870
|
|
|
1871
1871
|
var rectangle = /*#__PURE__*/Object.freeze({
|
|
1872
1872
|
__proto__: null,
|
|
1873
|
+
area: area$1,
|
|
1874
|
+
bottomRight: bottomRight,
|
|
1875
|
+
center: center$2,
|
|
1876
|
+
containFit: containFit$1,
|
|
1877
|
+
containsPoints: containsPoints,
|
|
1873
1878
|
create: create$7,
|
|
1879
|
+
cropFit: cropFit$1,
|
|
1874
1880
|
fromDimensions: fromDimensions,
|
|
1881
|
+
fromJson: fromJson$1,
|
|
1875
1882
|
fromPointAndDimensions: fromPointAndDimensions,
|
|
1876
1883
|
fromPoints: fromPoints,
|
|
1877
|
-
containFit: containFit$1,
|
|
1878
|
-
cropFit: cropFit$1,
|
|
1879
|
-
scaleFit: scaleFit$1,
|
|
1880
|
-
scale: scale$1,
|
|
1881
1884
|
isEqual: isEqual$1,
|
|
1882
|
-
offset: offset,
|
|
1883
|
-
area: area$1,
|
|
1884
|
-
center: center$2,
|
|
1885
|
-
topLeft: topLeft,
|
|
1886
|
-
bottomRight: bottomRight,
|
|
1887
|
-
isPortrait: isPortrait,
|
|
1888
1885
|
isLandscape: isLandscape,
|
|
1886
|
+
isPortrait: isPortrait,
|
|
1889
1887
|
isSquare: isSquare,
|
|
1888
|
+
offset: offset,
|
|
1890
1889
|
pad: pad,
|
|
1891
|
-
|
|
1892
|
-
|
|
1890
|
+
scale: scale$1,
|
|
1891
|
+
scaleFit: scaleFit$1,
|
|
1892
|
+
topLeft: topLeft
|
|
1893
1893
|
});
|
|
1894
1894
|
|
|
1895
1895
|
/**
|
|
@@ -2033,22 +2033,22 @@ function toRectangle(dimensions, position) {
|
|
|
2033
2033
|
|
|
2034
2034
|
var dimensions = /*#__PURE__*/Object.freeze({
|
|
2035
2035
|
__proto__: null,
|
|
2036
|
+
area: area,
|
|
2037
|
+
aspectRatio: aspectRatio,
|
|
2038
|
+
center: center$1,
|
|
2039
|
+
containFit: containFit,
|
|
2036
2040
|
create: create$6,
|
|
2037
|
-
|
|
2041
|
+
cropFit: cropFit,
|
|
2042
|
+
fitToRatio: fitToRatio,
|
|
2043
|
+
floor: floor,
|
|
2038
2044
|
isEqual: isEqual,
|
|
2039
|
-
scale: scale,
|
|
2040
2045
|
proportionalScale: proportionalScale,
|
|
2041
|
-
trim: trim,
|
|
2042
|
-
containFit: containFit,
|
|
2043
|
-
cropFit: cropFit,
|
|
2044
|
-
scaleFit: scaleFit,
|
|
2045
2046
|
round: round,
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
toRectangle: toRectangle
|
|
2047
|
+
scale: scale,
|
|
2048
|
+
scaleFit: scaleFit,
|
|
2049
|
+
square: square,
|
|
2050
|
+
toRectangle: toRectangle,
|
|
2051
|
+
trim: trim
|
|
2052
2052
|
});
|
|
2053
2053
|
|
|
2054
2054
|
/**
|
|
@@ -2106,12 +2106,12 @@ function direction(line) {
|
|
|
2106
2106
|
|
|
2107
2107
|
var line3 = /*#__PURE__*/Object.freeze({
|
|
2108
2108
|
__proto__: null,
|
|
2109
|
-
create: create$5,
|
|
2110
2109
|
center: center,
|
|
2111
|
-
|
|
2110
|
+
create: create$5,
|
|
2111
|
+
direction: direction,
|
|
2112
2112
|
distance: distance,
|
|
2113
2113
|
distanceSquared: distanceSquared,
|
|
2114
|
-
|
|
2114
|
+
transformMatrix: transformMatrix
|
|
2115
2115
|
});
|
|
2116
2116
|
|
|
2117
2117
|
/**
|
|
@@ -2180,11 +2180,11 @@ var matrix = /*#__PURE__*/Object.freeze({
|
|
|
2180
2180
|
__proto__: null,
|
|
2181
2181
|
create: create$4,
|
|
2182
2182
|
identity: identity,
|
|
2183
|
-
translation: translation,
|
|
2184
|
-
rotation: rotation,
|
|
2185
2183
|
rotate: rotate,
|
|
2184
|
+
rotation: rotation,
|
|
2185
|
+
transformPoint: transformPoint,
|
|
2186
2186
|
translate: translate,
|
|
2187
|
-
|
|
2187
|
+
translation: translation
|
|
2188
2188
|
});
|
|
2189
2189
|
|
|
2190
2190
|
function create$3() {
|
|
@@ -2309,8 +2309,8 @@ function projectPoint(plane, point) {
|
|
|
2309
2309
|
var plane = /*#__PURE__*/Object.freeze({
|
|
2310
2310
|
__proto__: null,
|
|
2311
2311
|
create: create$2,
|
|
2312
|
-
fromNormalAndCoplanarPoint: fromNormalAndCoplanarPoint,
|
|
2313
2312
|
distanceToPoint: distanceToPoint,
|
|
2313
|
+
fromNormalAndCoplanarPoint: fromNormalAndCoplanarPoint,
|
|
2314
2314
|
intersectLine: intersectLine,
|
|
2315
2315
|
projectPoint: projectPoint
|
|
2316
2316
|
});
|
|
@@ -2377,8 +2377,8 @@ function intersectPlane(ray, plane) {
|
|
|
2377
2377
|
|
|
2378
2378
|
var ray = /*#__PURE__*/Object.freeze({
|
|
2379
2379
|
__proto__: null,
|
|
2380
|
-
create: create$1,
|
|
2381
2380
|
at: at,
|
|
2381
|
+
create: create$1,
|
|
2382
2382
|
distanceToPlane: distanceToPlane,
|
|
2383
2383
|
intersectPlane: intersectPlane
|
|
2384
2384
|
});
|