@types/three 0.184.0 → 0.185.0
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.
- three/README.md +1 -1
- three/examples/jsm/Addons.d.ts +2 -0
- three/examples/jsm/controls/FirstPersonControls.d.ts +9 -0
- three/examples/jsm/controls/OrbitControls.d.ts +2 -2
- three/examples/jsm/controls/TransformControls.d.ts +32 -1
- three/examples/jsm/csm/CSMFrustum.d.ts +73 -13
- three/examples/jsm/exporters/DRACOExporter.d.ts +1 -1
- three/examples/jsm/exporters/GLTFExporter.d.ts +2 -2
- three/examples/jsm/exporters/PLYExporter.d.ts +5 -4
- three/examples/jsm/exporters/USDZExporter.d.ts +5 -1
- three/examples/jsm/generators/CityGenerator.d.ts +75 -0
- three/examples/jsm/generators/ForestGenerator.d.ts +79 -0
- three/examples/jsm/generators/TerrainGenerator.d.ts +67 -0
- three/examples/jsm/generators/TreeGenerator.d.ts +97 -0
- three/examples/jsm/generators/city/SidewalkGenerator.d.ts +40 -0
- three/examples/jsm/generators/city/SkyscraperGenerator.d.ts +83 -0
- three/examples/jsm/geometries/LoftGeometry.d.ts +83 -0
- three/examples/jsm/inspector/tabs/Parameters.d.ts +5 -2
- three/examples/jsm/lighting/ClusteredLighting.d.ts +45 -0
- three/examples/jsm/lighting/LightProbeGrid.d.ts +131 -13
- three/examples/jsm/loaders/DRACOLoader.d.ts +20 -6
- three/examples/jsm/loaders/EXRLoader.d.ts +2 -12
- three/examples/jsm/loaders/GLTFLoader.d.ts +1 -1
- three/examples/jsm/loaders/HDRLoader.d.ts +2 -12
- three/examples/jsm/loaders/KTX2Loader.d.ts +1 -1
- three/examples/jsm/loaders/LWOLoader.d.ts +6 -0
- three/examples/jsm/loaders/RGBELoader.d.ts +1 -7
- three/examples/jsm/loaders/SVGLoader.d.ts +9 -6
- three/examples/jsm/loaders/TGALoader.d.ts +2 -2
- three/examples/jsm/loaders/TIFFLoader.d.ts +2 -11
- three/examples/jsm/loaders/USDLoader.d.ts +6 -1
- three/examples/jsm/misc/TileCreasedNormalsPlugin.d.ts +49 -0
- three/examples/jsm/objects/MarchingCubes.d.ts +2 -2
- three/examples/jsm/objects/Reflector.d.ts +38 -5
- three/examples/jsm/objects/SkyMesh.d.ts +1 -1
- three/examples/jsm/physics/RapierPhysics.d.ts +1 -0
- three/examples/jsm/tsl/display/BloomNode.d.ts +23 -6
- three/examples/jsm/tsl/display/ImportanceSampledEnvironment.d.ts +84 -0
- three/examples/jsm/tsl/display/RecurrentDenoiseNode.d.ts +89 -0
- three/examples/jsm/tsl/display/SSAAPassNode.d.ts +0 -2
- three/examples/jsm/tsl/display/SSGINode.d.ts +4 -1
- three/examples/jsm/tsl/display/SSRNode.d.ts +303 -30
- three/examples/jsm/tsl/display/TRAANode.d.ts +1 -1
- three/examples/jsm/tsl/display/TemporalReprojectNode.d.ts +64 -0
- three/examples/jsm/tsl/lighting/ClusteredLightsNode.d.ts +54 -0
- three/examples/jsm/tsl/math/curlNoise.d.ts +38 -0
- three/examples/jsm/tsl/utils/GroundedSkybox.d.ts +17 -0
- three/examples/jsm/tsl/utils/RNoise.d.ts +12 -0
- three/examples/jsm/tsl/utils/SpecularHelpers.d.ts +20 -0
- three/examples/jsm/webxr/WebGLXRFallback.d.ts +14 -0
- three/package.json +3 -3
- three/src/Three.TSL.d.ts +10 -3
- three/src/Three.WebGPU.Nodes.d.ts +2 -2
- three/src/Three.WebGPU.d.ts +5 -3
- three/src/animation/AnimationClip.d.ts +0 -10
- three/src/cameras/Camera.d.ts +1 -1
- three/src/core/InterleavedBuffer.d.ts +1 -1
- three/src/core/Object3D.d.ts +8 -4
- three/src/core/RenderTarget.d.ts +11 -0
- three/src/core/Timer.d.ts +1 -1
- three/src/core/UniformsGroup.d.ts +1 -1
- three/src/extras/Controls.d.ts +6 -5
- three/src/extras/core/ShapePath.d.ts +61 -65
- three/src/loaders/DataTextureLoader.d.ts +37 -3
- three/src/loaders/MaterialLoader.d.ts +8 -0
- three/src/materials/LineBasicMaterial.d.ts +5 -0
- three/src/materials/Material.d.ts +9 -1
- three/src/materials/MeshBasicMaterial.d.ts +30 -0
- three/src/materials/MeshDepthMaterial.d.ts +13 -0
- three/src/materials/MeshDistanceMaterial.d.ts +13 -0
- three/src/materials/MeshLambertMaterial.d.ts +50 -1
- three/src/materials/MeshMatcapMaterial.d.ts +31 -1
- three/src/materials/MeshNormalMaterial.d.ts +11 -1
- three/src/materials/MeshPhongMaterial.d.ts +50 -1
- three/src/materials/MeshPhysicalMaterial.d.ts +50 -0
- three/src/materials/MeshStandardMaterial.d.ts +53 -1
- three/src/materials/MeshToonMaterial.d.ts +43 -1
- three/src/materials/PointsMaterial.d.ts +9 -0
- three/src/materials/ShaderMaterial.d.ts +2 -0
- three/src/materials/SpriteMaterial.d.ts +9 -0
- three/src/materials/nodes/Line2NodeMaterial.d.ts +18 -13
- three/src/materials/nodes/NodeMaterial.d.ts +33 -13
- three/src/materials/nodes/manager/NodeMaterialObserver.d.ts +0 -84
- three/src/math/Box2.d.ts +3 -3
- three/src/math/Box3.d.ts +255 -19
- three/src/math/Color.d.ts +10 -10
- three/src/math/FrustumArray.d.ts +75 -16
- three/src/math/Interpolant.d.ts +111 -8
- three/src/math/Matrix2.d.ts +1 -1
- three/src/math/Matrix3.d.ts +10 -1
- three/src/math/Matrix4.d.ts +329 -105
- three/src/math/Vector2.d.ts +1 -2
- three/src/math/Vector3.d.ts +3 -4
- three/src/math/Vector4.d.ts +1 -2
- three/src/math/interpolants/BezierInterpolant.d.ts +19 -3
- three/src/math/interpolants/CubicInterpolant.d.ts +18 -3
- three/src/math/interpolants/DiscreteInterpolant.d.ts +8 -3
- three/src/math/interpolants/LinearInterpolant.d.ts +7 -3
- three/src/math/interpolants/QuaternionLinearInterpolant.d.ts +7 -3
- three/src/nodes/Nodes.d.ts +4 -13
- three/src/nodes/TSL.d.ts +7 -5
- three/src/nodes/accessors/Batch.d.ts +19 -0
- three/src/nodes/accessors/Instance.d.ts +34 -0
- three/src/nodes/accessors/MaterialNode.d.ts +86 -79
- three/src/nodes/accessors/Morph.d.ts +11 -0
- three/src/nodes/accessors/Skinning.d.ts +23 -0
- three/src/nodes/accessors/StorageBufferNode.d.ts +22 -23
- three/src/nodes/accessors/StorageTexture3DNode.d.ts +17 -0
- three/src/nodes/accessors/StorageTextureNode.d.ts +6 -4
- three/src/nodes/accessors/TextureNode.d.ts +15 -10
- three/src/nodes/core/ArrayNode.d.ts +16 -8
- three/src/nodes/core/ContextNode.d.ts +5 -6
- three/src/nodes/core/LightingModel.d.ts +2 -0
- three/src/nodes/core/Node.d.ts +50 -51
- three/src/nodes/core/NodeBuilder.d.ts +1 -133
- three/src/nodes/core/OverrideContextNode.d.ts +92 -0
- three/src/nodes/core/PropertyNode.d.ts +13 -2
- three/src/nodes/core/StructNode.d.ts +0 -2
- three/src/nodes/core/StructTypeNode.d.ts +5 -4
- three/src/nodes/core/UniformNode.d.ts +48 -9
- three/src/nodes/display/BlendModes.d.ts +72 -11
- three/src/nodes/display/FrontFacingNode.d.ts +62 -3
- three/src/nodes/display/PassNode.d.ts +0 -2
- three/src/nodes/display/PremultiplyAlphaFunctions.d.ts +37 -0
- three/src/nodes/gpgpu/AtomicFunctionNode.d.ts +53 -45
- three/src/nodes/lighting/LightingContextNode.d.ts +9 -2
- three/src/nodes/lighting/LightsNode.d.ts +4 -4
- three/src/nodes/math/MathNode.d.ts +358 -304
- three/src/nodes/math/OperatorNode.d.ts +253 -82
- three/src/nodes/tsl/TSLCore.d.ts +16 -9
- three/src/nodes/utils/ArrayElementNode.d.ts +5 -4
- three/src/nodes/utils/EquirectUV.d.ts +31 -1
- three/src/nodes/utils/Packing.d.ts +50 -3
- three/src/nodes/utils/RTTNode.d.ts +7 -12
- three/src/nodes/utils/Remap.d.ts +216 -29
- three/src/nodes/utils/SampleNode.d.ts +18 -8
- three/src/objects/BatchedMesh.d.ts +1 -1
- three/src/objects/InstancedMesh.d.ts +0 -8
- three/src/objects/Skeleton.d.ts +0 -2
- three/src/renderers/common/Backend.d.ts +0 -3
- three/src/renderers/common/CanvasTarget.d.ts +0 -49
- three/src/renderers/common/ClippingContext.d.ts +6 -1
- three/src/renderers/common/CubeRenderTarget.d.ts +2 -1
- three/src/renderers/common/Info.d.ts +26 -66
- three/src/renderers/common/InspectorBase.d.ts +0 -7
- three/src/renderers/common/Lighting.d.ts +49 -5
- three/src/renderers/common/Renderer.d.ts +34 -458
- three/src/renderers/common/RendererUtils.d.ts +1 -2
- three/src/renderers/common/TimestampQueryPool.d.ts +1 -1
- three/src/renderers/common/XRManager.d.ts +32 -299
- three/src/renderers/common/nodes/NodeLibrary.d.ts +0 -117
- three/src/renderers/webgl/WebGLPrograms.d.ts +2 -0
- three/src/renderers/webgl/WebGLRenderLists.d.ts +5 -1
- three/src/renderers/webgl/WebGLState.d.ts +2 -0
- three/src/renderers/webgl-fallback/WebGLBackend.d.ts +1 -1
- three/src/renderers/webgl-fallback/nodes/GLSLNodeBuilder.d.ts +0 -10
- three/src/renderers/webgpu/nodes/StandardNodeLibrary.d.ts +0 -1
- three/src/renderers/webgpu/nodes/WGSLNodeBuilder.d.ts +5 -121
- three/src/textures/CubeDepthTexture.d.ts +2 -3
- three/src/textures/DataTexture.d.ts +2 -1
- three/src/textures/DepthTexture.d.ts +5 -5
- three/examples/jsm/lighting/TiledLighting.d.ts +0 -9
- three/examples/jsm/tsl/display/AnamorphicNode.d.ts +0 -31
- three/examples/jsm/tsl/lighting/TiledLightsNode.d.ts +0 -22
- three/src/nodes/accessors/BatchNode.d.ts +0 -12
- three/src/nodes/accessors/InstanceNode.d.ts +0 -30
- three/src/nodes/accessors/InstancedMeshNode.d.ts +0 -10
- three/src/nodes/accessors/MorphNode.d.ts +0 -14
- three/src/nodes/accessors/SkinningNode.d.ts +0 -32
- three/src/renderers/common/Animation.d.ts +0 -102
- three/src/renderers/common/Attributes.d.ts +0 -59
- three/src/renderers/common/Background.d.ts +0 -47
- three/src/renderers/common/BindGroup.d.ts +0 -39
- three/src/renderers/common/Binding.d.ts +0 -50
- three/src/renderers/common/Bindings.d.ts +0 -132
- three/src/renderers/common/Buffer.d.ts +0 -90
- three/src/renderers/common/ChainMap.d.ts +0 -49
- three/src/renderers/common/Color4.d.ts +0 -55
- three/src/renderers/common/ComputePipeline.d.ts +0 -34
- three/src/renderers/common/DataMap.d.ts +0 -42
- three/src/renderers/common/Geometries.d.ts +0 -111
- three/src/renderers/common/Pipeline.d.ts +0 -29
- three/src/renderers/common/Pipelines.d.ts +0 -186
- three/src/renderers/common/ProgrammableStage.d.ts +0 -73
- three/src/renderers/common/RenderBundle.d.ts +0 -25
- three/src/renderers/common/RenderBundles.d.ts +0 -34
- three/src/renderers/common/RenderContext.d.ts +0 -235
- three/src/renderers/common/RenderContexts.d.ts +0 -47
- three/src/renderers/common/RenderList.d.ts +0 -226
- three/src/renderers/common/RenderLists.d.ts +0 -46
- three/src/renderers/common/RenderObject.d.ts +0 -448
- three/src/renderers/common/RenderObjectPipeline.d.ts +0 -33
- three/src/renderers/common/RenderObjects.d.ts +0 -151
- three/src/renderers/common/SampledTexture.d.ts +0 -28
- three/src/renderers/common/Sampler.d.ts +0 -19
- three/src/renderers/common/Textures.d.ts +0 -125
- three/src/renderers/common/Uniform.d.ts +0 -262
- three/src/renderers/common/UniformBuffer.d.ts +0 -20
- three/src/renderers/common/UniformsGroup.d.ts +0 -152
- three/src/renderers/common/XRRenderTarget.d.ts +0 -67
- three/src/renderers/common/nodes/NodeBuilderState.d.ts +0 -121
- three/src/renderers/common/nodes/NodeManager.d.ts +0 -309
- three/src/renderers/common/nodes/NodeSampledTexture.d.ts +0 -29
- three/src/renderers/common/nodes/NodeSampler.d.ts +0 -12
- three/src/renderers/common/nodes/NodeUniform.d.ts +0 -250
- three/src/renderers/common/nodes/NodeUniformsGroup.d.ts +0 -41
- three/src/renderers/webgpu/nodes/WGSLNodeFunction.d.ts +0 -6
- three/src/renderers/webgpu/nodes/WGSLNodeParser.d.ts +0 -6
three/src/math/FrustumArray.d.ts
CHANGED
|
@@ -6,22 +6,81 @@ import { Box3 } from "./Box3.js";
|
|
|
6
6
|
import { Sphere } from "./Sphere.js";
|
|
7
7
|
import { Vector3 } from "./Vector3.js";
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
/**
|
|
10
|
+
* FrustumArray is used to determine if an object is visible in at least one camera
|
|
11
|
+
* from an array of cameras. This is particularly useful for multi-view renderers.
|
|
12
|
+
*/
|
|
13
|
+
export class FrustumArray {
|
|
14
|
+
/**
|
|
15
|
+
* The coordinate system to use.
|
|
16
|
+
*
|
|
17
|
+
* @type {WebGLCoordinateSystem|WebGPUCoordinateSystem}
|
|
18
|
+
* @default WebGLCoordinateSystem
|
|
19
|
+
*/
|
|
10
20
|
coordinateSystem: CoordinateSystem;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
/**
|
|
22
|
+
* Computes and caches a frustum for each camera of the given array camera.
|
|
23
|
+
*
|
|
24
|
+
* @param {ArrayCamera} cameraArray - The array camera whose sub-cameras define the frustums.
|
|
25
|
+
* @return {FrustumArray} A reference to this frustum array.
|
|
26
|
+
*/
|
|
27
|
+
setFromArrayCamera(cameraArray: ArrayCamera): FrustumArray;
|
|
28
|
+
/**
|
|
29
|
+
* Returns `true` if the 3D object's bounding sphere is intersecting any cached frustum.
|
|
30
|
+
*
|
|
31
|
+
* {@link FrustumArray#setFromArrayCamera} must be called once per render before this method.
|
|
32
|
+
*
|
|
33
|
+
* @param {Object3D} object - The 3D object to test.
|
|
34
|
+
* @return {boolean} Whether the 3D object is visible in any camera.
|
|
35
|
+
*/
|
|
36
|
+
intersectsObject(object: Object3D): boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Returns `true` if the given sprite is intersecting any cached frustum.
|
|
39
|
+
*
|
|
40
|
+
* {@link FrustumArray#setFromArrayCamera} must be called once per render before this method.
|
|
41
|
+
*
|
|
42
|
+
* @param {Sprite} sprite - The sprite to test.
|
|
43
|
+
* @return {boolean} Whether the sprite is visible in any camera.
|
|
44
|
+
*/
|
|
45
|
+
intersectsSprite(sprite: Sprite): boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Returns `true` if the given bounding sphere is intersecting any cached frustum.
|
|
48
|
+
*
|
|
49
|
+
* {@link FrustumArray#setFromArrayCamera} must be called once per render before this method.
|
|
50
|
+
*
|
|
51
|
+
* @param {Sphere} sphere - The bounding sphere to test.
|
|
52
|
+
* @return {boolean} Whether the sphere is visible in any camera.
|
|
53
|
+
*/
|
|
54
|
+
intersectsSphere(sphere: Sphere): boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Returns `true` if the given bounding box is intersecting any cached frustum.
|
|
57
|
+
*
|
|
58
|
+
* {@link FrustumArray#setFromArrayCamera} must be called once per render before this method.
|
|
59
|
+
*
|
|
60
|
+
* @param {Box3} box - The bounding box to test.
|
|
61
|
+
* @return {boolean} Whether the box is visible in any camera.
|
|
62
|
+
*/
|
|
63
|
+
intersectsBox(box: Box3): boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Returns `true` if the given point lies within any cached frustum.
|
|
66
|
+
*
|
|
67
|
+
* {@link FrustumArray#setFromArrayCamera} must be called once per render before this method.
|
|
68
|
+
*
|
|
69
|
+
* @param {Vector3} point - The point to test.
|
|
70
|
+
* @return {boolean} Whether the point is visible in any camera.
|
|
71
|
+
*/
|
|
72
|
+
containsPoint(point: Vector3): boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Copies the values of the given frustum array to this instance.
|
|
75
|
+
*
|
|
76
|
+
* @param {FrustumArray} frustumArray - The frustum array to copy.
|
|
77
|
+
* @return {FrustumArray} A reference to this frustum array.
|
|
78
|
+
*/
|
|
79
|
+
copy(source: FrustumArray): this;
|
|
80
|
+
/**
|
|
81
|
+
* Returns a new frustum array with copied values from this instance.
|
|
82
|
+
*
|
|
83
|
+
* @return {FrustumArray} A clone of this instance.
|
|
84
|
+
*/
|
|
24
85
|
clone(): FrustumArray;
|
|
25
86
|
}
|
|
26
|
-
|
|
27
|
-
export { FrustumArray };
|
three/src/math/Interpolant.d.ts
CHANGED
|
@@ -1,10 +1,113 @@
|
|
|
1
|
-
|
|
2
|
-
constructor(parameterPositions: any, sampleValues: any, sampleSize: number, resultBuffer?: any);
|
|
1
|
+
import { TypedArray } from "../core/BufferAttribute.js";
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Abstract base class of interpolants over parametric samples.
|
|
5
|
+
*
|
|
6
|
+
* The parameter domain is one dimensional, typically the time or a path
|
|
7
|
+
* along a curve defined by the data.
|
|
8
|
+
*
|
|
9
|
+
* The sample values can have any dimensionality and derived classes may
|
|
10
|
+
* apply special interpretations to the data.
|
|
11
|
+
*
|
|
12
|
+
* This class provides the interval seek in a Template Method, deferring
|
|
13
|
+
* the actual interpolation to derived classes.
|
|
14
|
+
*
|
|
15
|
+
* Time complexity is O(1) for linear access crossing at most two points
|
|
16
|
+
* and O(log N) for random access, where N is the number of positions.
|
|
17
|
+
*
|
|
18
|
+
* References: {@link http://www.oodesign.com/template-method-pattern.html}
|
|
19
|
+
*
|
|
20
|
+
* @abstract
|
|
21
|
+
*/
|
|
22
|
+
export abstract class Interpolant<TSettings = {}> {
|
|
23
|
+
/**
|
|
24
|
+
* Constructs a new interpolant.
|
|
25
|
+
*
|
|
26
|
+
* @param {TypedArray} parameterPositions - The parameter positions hold the interpolation factors.
|
|
27
|
+
* @param {TypedArray} sampleValues - The sample values.
|
|
28
|
+
* @param {number} sampleSize - The sample size
|
|
29
|
+
* @param {TypedArray} [resultBuffer] - The result buffer.
|
|
30
|
+
*/
|
|
31
|
+
constructor(
|
|
32
|
+
parameterPositions: TypedArray,
|
|
33
|
+
sampleValues: TypedArray,
|
|
34
|
+
sampleSize: number,
|
|
35
|
+
resultBuffer?: TypedArray,
|
|
36
|
+
);
|
|
37
|
+
/**
|
|
38
|
+
* The parameter positions.
|
|
39
|
+
*
|
|
40
|
+
* @type {TypedArray}
|
|
41
|
+
*/
|
|
42
|
+
parameterPositions: TypedArray;
|
|
43
|
+
/**
|
|
44
|
+
* The result buffer.
|
|
45
|
+
*
|
|
46
|
+
* @type {TypedArray}
|
|
47
|
+
*/
|
|
48
|
+
resultBuffer: TypedArray;
|
|
49
|
+
/**
|
|
50
|
+
* The sample values.
|
|
51
|
+
*
|
|
52
|
+
* @type {TypedArray}
|
|
53
|
+
*/
|
|
54
|
+
sampleValues: TypedArray;
|
|
55
|
+
/**
|
|
56
|
+
* The value size.
|
|
57
|
+
*
|
|
58
|
+
* @type {TypedArray}
|
|
59
|
+
*/
|
|
60
|
+
valueSize: TypedArray;
|
|
61
|
+
/**
|
|
62
|
+
* The interpolation settings.
|
|
63
|
+
*
|
|
64
|
+
* @type {?Object}
|
|
65
|
+
* @default null
|
|
66
|
+
*/
|
|
67
|
+
settings: TSettings | null;
|
|
68
|
+
/**
|
|
69
|
+
* The default settings object.
|
|
70
|
+
*
|
|
71
|
+
* @type {Object}
|
|
72
|
+
*/
|
|
73
|
+
DefaultSettings_: TSettings;
|
|
74
|
+
/**
|
|
75
|
+
* Evaluate the interpolant at position `t`.
|
|
76
|
+
*
|
|
77
|
+
* @param {number} t - The interpolation factor.
|
|
78
|
+
* @return {TypedArray} The result buffer.
|
|
79
|
+
*/
|
|
80
|
+
evaluate(t: number): TypedArray;
|
|
81
|
+
/**
|
|
82
|
+
* Returns the interpolation settings.
|
|
83
|
+
*
|
|
84
|
+
* @return {Object} The interpolation settings.
|
|
85
|
+
*/
|
|
86
|
+
getSettings_(): unknown;
|
|
87
|
+
/**
|
|
88
|
+
* Copies a sample value to the result buffer.
|
|
89
|
+
*
|
|
90
|
+
* @param {number} index - An index into the sample value buffer.
|
|
91
|
+
* @return {TypedArray} The result buffer.
|
|
92
|
+
*/
|
|
93
|
+
copySampleValue_(index: number): TypedArray;
|
|
94
|
+
/**
|
|
95
|
+
* Copies a sample value to the result buffer.
|
|
96
|
+
*
|
|
97
|
+
* @abstract
|
|
98
|
+
* @param {number} i1 - An index into the sample value buffer.
|
|
99
|
+
* @param {number} t0 - The previous interpolation factor.
|
|
100
|
+
* @param {number} t - The current interpolation factor.
|
|
101
|
+
* @param {number} t1 - The next interpolation factor.
|
|
102
|
+
* @return {TypedArray} The result buffer.
|
|
103
|
+
*/
|
|
104
|
+
abstract interpolate_(i1: number, t0: number, t: number, t1: number): TypedArray;
|
|
105
|
+
/**
|
|
106
|
+
* Optional method that is executed when the interval has changed.
|
|
107
|
+
*
|
|
108
|
+
* @param {number} i1 - An index into the sample value buffer.
|
|
109
|
+
* @param {number} t0 - The previous interpolation factor.
|
|
110
|
+
* @param {number} t - The current interpolation factor.
|
|
111
|
+
*/
|
|
112
|
+
intervalChanged_(i1: number, t0: number, t: number): void;
|
|
10
113
|
}
|
three/src/math/Matrix2.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export type Matrix2Tuple = [
|
|
|
12
12
|
* const m = new Matrix2();
|
|
13
13
|
*/
|
|
14
14
|
export class Matrix2 {
|
|
15
|
-
|
|
15
|
+
readonly isMatrix2: true;
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* A {@link https://en.wikipedia.org/wiki/Row-_and_column-major_order column-major} list of matrix values.
|
three/src/math/Matrix3.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export type Matrix3Tuple = [
|
|
|
17
17
|
];
|
|
18
18
|
|
|
19
19
|
export class Matrix3 {
|
|
20
|
-
|
|
20
|
+
readonly isMatrix3: true;
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* Array with matrix values.
|
|
@@ -99,10 +99,19 @@ export class Matrix3 {
|
|
|
99
99
|
|
|
100
100
|
setUvTransform(tx: number, ty: number, sx: number, sy: number, rotation: number, cx: number, cy: number): this;
|
|
101
101
|
|
|
102
|
+
/**
|
|
103
|
+
* @deprecated Use .makeScale() instead.
|
|
104
|
+
*/
|
|
102
105
|
scale(sx: number, sy: number): this;
|
|
103
106
|
|
|
107
|
+
/**
|
|
108
|
+
* @deprecated Use .makeRotation() instead.
|
|
109
|
+
*/
|
|
104
110
|
rotate(theta: number): this;
|
|
105
111
|
|
|
112
|
+
/**
|
|
113
|
+
* @deprecated Use .makeTranslation() instead.
|
|
114
|
+
*/
|
|
106
115
|
translate(tx: number, ty: number): this;
|
|
107
116
|
|
|
108
117
|
/**
|