@babylonjs/core 7.11.2 → 7.11.3
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/Animations/animatable.d.ts +10 -10
- package/Animations/animatable.js +5 -5
- package/Animations/animatable.js.map +1 -1
- package/Animations/animationGroupMask.d.ts +2 -2
- package/Animations/animationGroupMask.js +1 -1
- package/Animations/animationGroupMask.js.map +1 -1
- package/Animations/easing.d.ts +2 -2
- package/Animations/easing.js +1 -1
- package/Animations/easing.js.map +1 -1
- package/Behaviors/Meshes/attachToBoxBehavior.d.ts +3 -3
- package/Behaviors/Meshes/attachToBoxBehavior.js +3 -3
- package/Behaviors/Meshes/attachToBoxBehavior.js.map +1 -1
- package/Cameras/Inputs/freeCameraMouseInput.d.ts +2 -2
- package/Cameras/Inputs/freeCameraMouseInput.js +1 -1
- package/Cameras/Inputs/freeCameraMouseInput.js.map +1 -1
- package/Cameras/Inputs/freeCameraTouchInput.d.ts +2 -2
- package/Cameras/Inputs/freeCameraTouchInput.js +1 -1
- package/Cameras/Inputs/freeCameraTouchInput.js.map +1 -1
- package/Culling/Helper/boundingInfoHelper.d.ts +28 -0
- package/Culling/Helper/boundingInfoHelper.js +178 -0
- package/Culling/Helper/boundingInfoHelper.js.map +1 -0
- package/Culling/Helper/webgl2BoundingHelper.d.ts +22 -0
- package/Culling/Helper/webgl2BoundingHelper.js +61 -0
- package/Culling/Helper/webgl2BoundingHelper.js.map +1 -0
- package/Culling/Octrees/octree.d.ts +2 -2
- package/Culling/Octrees/octree.js +1 -1
- package/Culling/Octrees/octree.js.map +1 -1
- package/Culling/index.d.ts +1 -0
- package/Culling/index.js +1 -0
- package/Culling/index.js.map +1 -1
- package/Culling/ray.d.ts +4 -4
- package/Culling/ray.js +2 -2
- package/Culling/ray.js.map +1 -1
- package/Debug/skeletonViewer.d.ts +6 -6
- package/Debug/skeletonViewer.js +3 -3
- package/Debug/skeletonViewer.js.map +1 -1
- package/DeviceInput/InputDevices/deviceSource.d.ts +2 -2
- package/DeviceInput/InputDevices/deviceSource.js +1 -1
- package/DeviceInput/InputDevices/deviceSource.js.map +1 -1
- package/Engines/Extensions/engine.transformFeedback.d.ts +5 -0
- package/Engines/Extensions/engine.transformFeedback.js +3 -0
- package/Engines/Extensions/engine.transformFeedback.js.map +1 -1
- package/Engines/abstractEngine.js +2 -2
- package/Engines/abstractEngine.js.map +1 -1
- package/Engines/nativeEngine.d.ts +7 -0
- package/Engines/nativeEngine.js +4 -1
- package/Engines/nativeEngine.js.map +1 -1
- package/Maths/math.color.d.ts +14 -14
- package/Maths/math.color.js +7 -7
- package/Maths/math.color.js.map +1 -1
- package/Maths/math.isovector.d.ts +4 -4
- package/Maths/math.isovector.js +2 -2
- package/Maths/math.isovector.js.map +1 -1
- package/Maths/math.vector.d.ts +12 -12
- package/Maths/math.vector.js +6 -6
- package/Maths/math.vector.js.map +1 -1
- package/Maths/math.vertexFormat.d.ts +10 -10
- package/Maths/math.vertexFormat.js +5 -5
- package/Maths/math.vertexFormat.js.map +1 -1
- package/Meshes/mesh.d.ts +4 -0
- package/Meshes/mesh.js +13 -4
- package/Meshes/mesh.js.map +1 -1
- package/Misc/observable.d.ts +6 -6
- package/Misc/observable.js +4 -4
- package/Misc/observable.js.map +1 -1
- package/Misc/sceneOptimizer.d.ts +3 -3
- package/Misc/sceneOptimizer.js +2 -2
- package/Misc/sceneOptimizer.js.map +1 -1
- package/Particles/EmitterTypes/coneParticleEmitter.d.ts +2 -2
- package/Particles/EmitterTypes/coneParticleEmitter.js +1 -1
- package/Particles/EmitterTypes/coneParticleEmitter.js.map +1 -1
- package/Particles/EmitterTypes/cylinderParticleEmitter.d.ts +8 -8
- package/Particles/EmitterTypes/cylinderParticleEmitter.js +4 -4
- package/Particles/EmitterTypes/cylinderParticleEmitter.js.map +1 -1
- package/Particles/EmitterTypes/hemisphericParticleEmitter.d.ts +6 -6
- package/Particles/EmitterTypes/hemisphericParticleEmitter.js +3 -3
- package/Particles/EmitterTypes/hemisphericParticleEmitter.js.map +1 -1
- package/Particles/EmitterTypes/sphereParticleEmitter.d.ts +6 -6
- package/Particles/EmitterTypes/sphereParticleEmitter.js +3 -3
- package/Particles/EmitterTypes/sphereParticleEmitter.js.map +1 -1
- package/Particles/pointsCloudSystem.d.ts +0 -1
- package/Particles/pointsCloudSystem.js +0 -1
- package/Particles/pointsCloudSystem.js.map +1 -1
- package/Shaders/gpuTransform.fragment.d.ts +5 -0
- package/Shaders/gpuTransform.fragment.js +11 -0
- package/Shaders/gpuTransform.fragment.js.map +1 -0
- package/Shaders/gpuTransform.vertex.d.ts +13 -0
- package/Shaders/gpuTransform.vertex.js +33 -0
- package/Shaders/gpuTransform.vertex.js.map +1 -0
- package/XR/features/WebXRBackgroundRemover.d.ts +2 -2
- package/XR/features/WebXRBackgroundRemover.js +1 -1
- package/XR/features/WebXRBackgroundRemover.js.map +1 -1
- package/XR/features/WebXRHitTest.d.ts +2 -2
- package/XR/features/WebXRHitTest.js +1 -1
- package/XR/features/WebXRHitTest.js.map +1 -1
- package/XR/features/WebXRHitTestLegacy.d.ts +2 -2
- package/XR/features/WebXRHitTestLegacy.js +1 -1
- package/XR/features/WebXRHitTestLegacy.js.map +1 -1
- package/XR/features/WebXRRawCameraAccess.js +0 -2
- package/XR/features/WebXRRawCameraAccess.js.map +1 -1
- package/XR/motionController/webXRAbstractMotionController.d.ts +2 -0
- package/XR/motionController/webXRAbstractMotionController.js +1 -0
- package/XR/motionController/webXRAbstractMotionController.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"math.isovector.js","sourceRoot":"","sources":["../../../../dev/core/src/Maths/math.isovector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAExC;;;;;GAKG;AACH,gEAAgE;AAChE,MAAM,OAAO,UAAU;IACnB;;;;OAIG;IACH;IACI,
|
|
1
|
+
{"version":3,"file":"math.isovector.js","sourceRoot":"","sources":["../../../../dev/core/src/Maths/math.isovector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAExC;;;;;GAKG;AACH,gEAAgE;AAChE,MAAM,OAAO,UAAU;IACnB;;;;OAIG;IACH;IACI,uCAAuC;IAChC,IAAY,CAAC;IACpB,wCAAwC;IACjC,IAAY,CAAC;QAFb,MAAC,GAAD,CAAC,CAAY;QAEb,MAAC,GAAD,CAAC,CAAY;QAEpB,IAAI,CAAC,KAAK,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE;YACrB,CAAC,KAAK,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YACpB,MAAM,CAAC,IAAI,CAAC,oCAAoC,CAAC,CAAC;SACrD;QACD,IAAI,CAAC,KAAK,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE;YACrB,CAAC,KAAK,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YACpB,MAAM,CAAC,IAAI,CAAC,oCAAoC,CAAC,CAAC;SACrD;IACL,CAAC;IAED,YAAY;IAEZ;;;OAGG;IACI,KAAK;QACR,OAAO,IAAI,UAAU,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;IAC1C,CAAC;IAED;;;;;OAKG;IACI,aAAa,CAAC,KAAiB;QAClC,iBAAiB;QACjB,MAAM,CAAC,GAAW,IAAI,CAAC,CAAC,CAAC;QACzB,IAAI,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC;QACpC,IAAI,CAAC,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC;QAC9B,OAAO,IAAI,CAAC;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,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE;YACrB,CAAC,KAAK,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YACpB,MAAM,CAAC,IAAI,CAAC,sCAAsC,CAAC,CAAC;SACvD;QACD,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC;QACjB,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;QACpB,IAAI,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC;QAC5B,OAAO,IAAI,CAAC;IAChB,CAAC;IAED;;;;;OAKG;IACI,iBAAiB,CAAC,MAAkB,EAAE,WAAmB;QAC5D,MAAM,KAAK,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC;QAC7B,KAAK,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC,GAAG,WAAW,GAAG,IAAI,CAAC,CAAC,GAAG,WAAW,CAAC;QACrE,KAAK,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,GAAG,WAAW,CAAC;QACzD,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,UAAU;IAEV;;;OAGG;IACI,MAAM,CAAC,IAAI;QACd,OAAO,IAAI,UAAU,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAChC,CAAC;CACJ","sourcesContent":["import { Logger } from \"../Misc/logger\";\r\nimport { Vector3 } from \"./math.vector\";\r\n\r\n/**\r\n * Class representing an isovector a vector containing 2 INTEGER coordinates\r\n * x axis is horizontal\r\n * y axis is 60 deg counter clockwise from positive y axis\r\n * @internal\r\n */\r\n// eslint-disable-next-line @typescript-eslint/naming-convention\r\nexport class _IsoVector {\r\n /**\r\n * Creates a new isovector from the given x and y coordinates\r\n * @param x defines the first coordinate, must be an integer\r\n * @param y defines the second coordinate, must be an integer\r\n */\r\n constructor(\r\n /** [0] defines the first coordinate */\r\n public x: number = 0,\r\n /** [0] defines the second coordinate */\r\n public y: number = 0\r\n ) {\r\n if (x !== Math.floor(x)) {\r\n x === Math.floor(x);\r\n Logger.Warn(\"x is not an integer, floor(x) used\");\r\n }\r\n if (y !== Math.floor(y)) {\r\n y === Math.floor(y);\r\n Logger.Warn(\"y is not an integer, floor(y) used\");\r\n }\r\n }\r\n\r\n // Operators\r\n\r\n /**\r\n * Gets a new IsoVector copied from the IsoVector\r\n * @returns a new IsoVector\r\n */\r\n public clone(): _IsoVector {\r\n return new _IsoVector(this.x, this.y);\r\n }\r\n\r\n /**\r\n * Rotates one IsoVector 60 degrees counter clockwise about another\r\n * Please note that this is an in place operation\r\n * @param other an IsoVector a center of rotation\r\n * @returns the rotated IsoVector\r\n */\r\n public rotate60About(other: _IsoVector) {\r\n //other IsoVector\r\n const x: number = this.x;\r\n this.x = other.x + other.y - this.y;\r\n this.y = x + this.y - other.x;\r\n return this;\r\n }\r\n\r\n /**\r\n * Rotates one IsoVector 60 degrees clockwise about another\r\n * Please note that this is an in place operation\r\n * @param other an IsoVector as center of rotation\r\n * @returns the rotated IsoVector\r\n */\r\n public rotateNeg60About(other: _IsoVector) {\r\n const x = this.x;\r\n this.x = x + this.y - other.y;\r\n this.y = other.x + other.y - x;\r\n return this;\r\n }\r\n\r\n /**\r\n * For an equilateral triangle OAB with O at isovector (0, 0) and A at isovector (m, n)\r\n * Rotates one IsoVector 120 degrees counter clockwise about the center of the triangle\r\n * Please note that this is an in place operation\r\n * @param m integer a measure a Primary triangle of order (m, n) m > n\r\n * @param n >= 0 integer a measure for a Primary triangle of order (m, n)\r\n * @returns the rotated IsoVector\r\n */\r\n public rotate120(m: number, n: number) {\r\n //m, n integers\r\n if (m !== Math.floor(m)) {\r\n m === Math.floor(m);\r\n Logger.Warn(\"m not an integer only floor(m) used\");\r\n }\r\n if (n !== Math.floor(n)) {\r\n n === Math.floor(n);\r\n Logger.Warn(\"n not an integer only floor(n) used\");\r\n }\r\n const x = this.x;\r\n this.x = m - x - this.y;\r\n this.y = n + x;\r\n return this;\r\n }\r\n\r\n /**\r\n * For an equilateral triangle OAB with O at isovector (0, 0) and A at isovector (m, n)\r\n * Rotates one IsoVector 120 degrees clockwise about the center of the triangle\r\n * Please note that this is an in place operation\r\n * @param m integer a measure a Primary triangle of order (m, n) m > n\r\n * @param n >= 0 integer a measure for a Primary triangle of order (m, n)\r\n * @returns the rotated IsoVector\r\n */\r\n public rotateNeg120(m: number, n: number) {\r\n //m, n integers\r\n if (m !== Math.floor(m)) {\r\n m === Math.floor(m);\r\n Logger.Warn(\"m is not an integer, floor(m) used\");\r\n }\r\n if (n !== Math.floor(n)) {\r\n n === Math.floor(n);\r\n Logger.Warn(\"n is not an integer, floor(n) used\");\r\n }\r\n const x = this.x;\r\n this.x = this.y - n;\r\n this.y = m + n - x - this.y;\r\n return this;\r\n }\r\n\r\n /**\r\n * Transforms an IsoVector to one in Cartesian 3D space based on an isovector\r\n * @param origin an IsoVector\r\n * @param isoGridSize\r\n * @returns Point as a Vector3\r\n */\r\n public toCartesianOrigin(origin: _IsoVector, isoGridSize: number) {\r\n const point = Vector3.Zero();\r\n point.x = origin.x + 2 * this.x * isoGridSize + this.y * isoGridSize;\r\n point.y = origin.y + Math.sqrt(3) * this.y * isoGridSize;\r\n return point;\r\n }\r\n\r\n // Statics\r\n\r\n /**\r\n * Gets a new IsoVector(0, 0)\r\n * @returns a new IsoVector\r\n */\r\n public static Zero(): _IsoVector {\r\n return new _IsoVector(0, 0);\r\n }\r\n}\r\n"]}
|
package/Maths/math.vector.d.ts
CHANGED
|
@@ -80,9 +80,9 @@ export interface VectorStatic<T extends Vector<any[], _I>, _I = TensorLike<T>> e
|
|
|
80
80
|
* Example Playground - Overview - https://playground.babylonjs.com/#QYBWV4#9
|
|
81
81
|
*/
|
|
82
82
|
export declare class Vector2 implements Vector<Tuple<number, 2>, IVector2Like>, IVector2Like {
|
|
83
|
-
/** defines the first coordinate */
|
|
83
|
+
/** [0] defines the first coordinate */
|
|
84
84
|
x: number;
|
|
85
|
-
/** defines the second coordinate */
|
|
85
|
+
/** [0] defines the second coordinate */
|
|
86
86
|
y: number;
|
|
87
87
|
private static _ZeroReadOnly;
|
|
88
88
|
/**
|
|
@@ -99,9 +99,9 @@ export declare class Vector2 implements Vector<Tuple<number, 2>, IVector2Like>,
|
|
|
99
99
|
* @param y defines the second coordinate
|
|
100
100
|
*/
|
|
101
101
|
constructor(
|
|
102
|
-
/** defines the first coordinate */
|
|
102
|
+
/** [0] defines the first coordinate */
|
|
103
103
|
x?: number,
|
|
104
|
-
/** defines the second coordinate */
|
|
104
|
+
/** [0] defines the second coordinate */
|
|
105
105
|
y?: number);
|
|
106
106
|
/**
|
|
107
107
|
* Gets a string with the Vector2 coordinates
|
|
@@ -1839,13 +1839,13 @@ export declare class Vector3 implements Vector<Tuple<number, 3>, Vector3>, IVect
|
|
|
1839
1839
|
* Vector4 class created for EulerAngle class conversion to Quaternion
|
|
1840
1840
|
*/
|
|
1841
1841
|
export declare class Vector4 implements Vector<Tuple<number, 4>, IVector4Like>, IVector4Like {
|
|
1842
|
-
/** x value of the vector */
|
|
1842
|
+
/** [0] x value of the vector */
|
|
1843
1843
|
x: number;
|
|
1844
|
-
/** y value of the vector */
|
|
1844
|
+
/** [0] y value of the vector */
|
|
1845
1845
|
y: number;
|
|
1846
|
-
/** z value of the vector */
|
|
1846
|
+
/** [0] z value of the vector */
|
|
1847
1847
|
z: number;
|
|
1848
|
-
/** w value of the vector */
|
|
1848
|
+
/** [0] w value of the vector */
|
|
1849
1849
|
w: number;
|
|
1850
1850
|
private static _ZeroReadOnly;
|
|
1851
1851
|
/**
|
|
@@ -1864,13 +1864,13 @@ export declare class Vector4 implements Vector<Tuple<number, 4>, IVector4Like>,
|
|
|
1864
1864
|
* @param w w value of the vector
|
|
1865
1865
|
*/
|
|
1866
1866
|
constructor(
|
|
1867
|
-
/** x value of the vector */
|
|
1867
|
+
/** [0] x value of the vector */
|
|
1868
1868
|
x?: number,
|
|
1869
|
-
/** y value of the vector */
|
|
1869
|
+
/** [0] y value of the vector */
|
|
1870
1870
|
y?: number,
|
|
1871
|
-
/** z value of the vector */
|
|
1871
|
+
/** [0] z value of the vector */
|
|
1872
1872
|
z?: number,
|
|
1873
|
-
/** w value of the vector */
|
|
1873
|
+
/** [0] w value of the vector */
|
|
1874
1874
|
w?: number);
|
|
1875
1875
|
/**
|
|
1876
1876
|
* Returns the string with the Vector4 coordinates.
|
package/Maths/math.vector.js
CHANGED
|
@@ -20,9 +20,9 @@ export class Vector2 {
|
|
|
20
20
|
* @param y defines the second coordinate
|
|
21
21
|
*/
|
|
22
22
|
constructor(
|
|
23
|
-
/** defines the first coordinate */
|
|
23
|
+
/** [0] defines the first coordinate */
|
|
24
24
|
x = 0,
|
|
25
|
-
/** defines the second coordinate */
|
|
25
|
+
/** [0] defines the second coordinate */
|
|
26
26
|
y = 0) {
|
|
27
27
|
this.x = x;
|
|
28
28
|
this.y = y;
|
|
@@ -2835,13 +2835,13 @@ export class Vector4 {
|
|
|
2835
2835
|
* @param w w value of the vector
|
|
2836
2836
|
*/
|
|
2837
2837
|
constructor(
|
|
2838
|
-
/** x value of the vector */
|
|
2838
|
+
/** [0] x value of the vector */
|
|
2839
2839
|
x = 0,
|
|
2840
|
-
/** y value of the vector */
|
|
2840
|
+
/** [0] y value of the vector */
|
|
2841
2841
|
y = 0,
|
|
2842
|
-
/** z value of the vector */
|
|
2842
|
+
/** [0] z value of the vector */
|
|
2843
2843
|
z = 0,
|
|
2844
|
-
/** w value of the vector */
|
|
2844
|
+
/** [0] w value of the vector */
|
|
2845
2845
|
w = 0) {
|
|
2846
2846
|
this.x = x;
|
|
2847
2847
|
this.y = y;
|