@nativescript/canvas-three 2.0.0-webgpu.34 → 2.0.0-webgpu.36
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/README.md +50 -19
- package/index.d.ts +1 -1
- package/index.js +2 -2
- package/index.js.map +1 -1
- package/package.json +3 -2
- package/three/src/Three.Legacy.d.ts +0 -20
- package/three/src/Three.WebGPU.d.ts +0 -180
- package/three/src/Three.d.ts +0 -189
- package/three/src/animation/AnimationAction.d.ts +0 -86
- package/three/src/animation/AnimationClip.d.ts +0 -50
- package/three/src/animation/AnimationMixer.d.ts +0 -35
- package/three/src/animation/AnimationObjectGroup.d.ts +0 -17
- package/three/src/animation/AnimationUtils.d.ts +0 -40
- package/three/src/animation/KeyframeTrack.d.ts +0 -55
- package/three/src/animation/PropertyBinding.d.ts +0 -43
- package/three/src/animation/PropertyMixer.d.ts +0 -17
- package/three/src/animation/tracks/BooleanKeyframeTrack.d.ts +0 -10
- package/three/src/animation/tracks/ColorKeyframeTrack.d.ts +0 -11
- package/three/src/animation/tracks/NumberKeyframeTrack.d.ts +0 -11
- package/three/src/animation/tracks/QuaternionKeyframeTrack.d.ts +0 -11
- package/three/src/animation/tracks/StringKeyframeTrack.d.ts +0 -10
- package/three/src/animation/tracks/VectorKeyframeTrack.d.ts +0 -11
- package/three/src/audio/Audio.d.ts +0 -270
- package/three/src/audio/AudioAnalyser.d.ts +0 -58
- package/three/src/audio/AudioContext.d.ts +0 -19
- package/three/src/audio/AudioListener.d.ts +0 -96
- package/three/src/audio/PositionalAudio.d.ts +0 -101
- package/three/src/cameras/ArrayCamera.d.ts +0 -32
- package/three/src/cameras/Camera.d.ts +0 -74
- package/three/src/cameras/CubeCamera.d.ts +0 -68
- package/three/src/cameras/OrthographicCamera.d.ts +0 -167
- package/three/src/cameras/PerspectiveCamera.d.ts +0 -254
- package/three/src/cameras/StereoCamera.d.ts +0 -50
- package/three/src/constants.d.ts +0 -802
- package/three/src/core/BufferAttribute.d.ts +0 -592
- package/three/src/core/BufferGeometry.d.ts +0 -417
- package/three/src/core/Clock.d.ts +0 -72
- package/three/src/core/EventDispatcher.d.ts +0 -74
- package/three/src/core/GLBufferAttribute.d.ts +0 -121
- package/three/src/core/InstancedBufferAttribute.d.ts +0 -32
- package/three/src/core/InstancedBufferGeometry.d.ts +0 -37
- package/three/src/core/InstancedInterleavedBuffer.d.ts +0 -22
- package/three/src/core/InterleavedBuffer.d.ts +0 -162
- package/three/src/core/InterleavedBufferAttribute.d.ts +0 -201
- package/three/src/core/Layers.d.ts +0 -72
- package/three/src/core/Object3D.d.ts +0 -644
- package/three/src/core/Raycaster.d.ts +0 -199
- package/three/src/core/RenderTarget.d.ts +0 -89
- package/three/src/core/Uniform.d.ts +0 -38
- package/three/src/core/UniformsGroup.d.ts +0 -33
- package/three/src/extras/DataUtils.d.ts +0 -22
- package/three/src/extras/Earcut.d.ts +0 -15
- package/three/src/extras/ImageUtils.d.ts +0 -30
- package/three/src/extras/PMREMGenerator.d.ts +0 -82
- package/three/src/extras/ShapeUtils.d.ts +0 -25
- package/three/src/extras/TextureUtils.d.ts +0 -37
- package/three/src/extras/core/Curve.d.ts +0 -162
- package/three/src/extras/core/CurvePath.d.ts +0 -77
- package/three/src/extras/core/Interpolations.d.ts +0 -36
- package/three/src/extras/core/Path.d.ts +0 -148
- package/three/src/extras/core/Shape.d.ts +0 -86
- package/three/src/extras/core/ShapePath.d.ts +0 -98
- package/three/src/extras/curves/ArcCurve.d.ts +0 -34
- package/three/src/extras/curves/CatmullRomCurve3.d.ts +0 -77
- package/three/src/extras/curves/CubicBezierCurve.d.ts +0 -72
- package/three/src/extras/curves/CubicBezierCurve3.d.ts +0 -72
- package/three/src/extras/curves/Curves.d.ts +0 -10
- package/three/src/extras/curves/EllipseCurve.d.ts +0 -106
- package/three/src/extras/curves/LineCurve.d.ts +0 -42
- package/three/src/extras/curves/LineCurve3.d.ts +0 -42
- package/three/src/extras/curves/QuadraticBezierCurve.d.ts +0 -64
- package/three/src/extras/curves/QuadraticBezierCurve3.d.ts +0 -64
- package/three/src/extras/curves/SplineCurve.d.ts +0 -52
- package/three/src/geometries/BoxGeometry.d.ts +0 -52
- package/three/src/geometries/CapsuleGeometry.d.ts +0 -48
- package/three/src/geometries/CircleGeometry.d.ts +0 -51
- package/three/src/geometries/ConeGeometry.d.ts +0 -56
- package/three/src/geometries/CylinderGeometry.d.ts +0 -55
- package/three/src/geometries/DodecahedronGeometry.d.ts +0 -25
- package/three/src/geometries/EdgesGeometry.d.ts +0 -41
- package/three/src/geometries/ExtrudeGeometry.d.ts +0 -139
- package/three/src/geometries/Geometries.d.ts +0 -21
- package/three/src/geometries/IcosahedronGeometry.d.ts +0 -26
- package/three/src/geometries/LatheGeometry.d.ts +0 -55
- package/three/src/geometries/OctahedronGeometry.d.ts +0 -25
- package/three/src/geometries/PlaneGeometry.d.ts +0 -48
- package/three/src/geometries/PolyhedronGeometry.d.ts +0 -54
- package/three/src/geometries/RingGeometry.d.ts +0 -52
- package/three/src/geometries/ShapeGeometry.d.ts +0 -53
- package/three/src/geometries/SphereGeometry.d.ts +0 -59
- package/three/src/geometries/TetrahedronGeometry.d.ts +0 -25
- package/three/src/geometries/TorusGeometry.d.ts +0 -49
- package/three/src/geometries/TorusKnotGeometry.d.ts +0 -52
- package/three/src/geometries/TubeGeometry.d.ts +0 -80
- package/three/src/geometries/WireframeGeometry.d.ts +0 -40
- package/three/src/helpers/ArrowHelper.d.ts +0 -86
- package/three/src/helpers/AxesHelper.d.ts +0 -50
- package/three/src/helpers/Box3Helper.d.ts +0 -44
- package/three/src/helpers/BoxHelper.d.ts +0 -64
- package/three/src/helpers/CameraHelper.d.ts +0 -80
- package/three/src/helpers/DirectionalLightHelper.d.ts +0 -81
- package/three/src/helpers/GridHelper.d.ts +0 -47
- package/three/src/helpers/HemisphereLightHelper.d.ts +0 -72
- package/three/src/helpers/PlaneHelper.d.ts +0 -50
- package/three/src/helpers/PointLightHelper.d.ts +0 -73
- package/three/src/helpers/PolarGridHelper.d.ts +0 -48
- package/three/src/helpers/SkeletonHelper.d.ts +0 -78
- package/three/src/helpers/SpotLightHelper.d.ts +0 -77
- package/three/src/lights/AmbientLight.d.ts +0 -36
- package/three/src/lights/DirectionalLight.d.ts +0 -103
- package/three/src/lights/DirectionalLightShadow.d.ts +0 -73
- package/three/src/lights/HemisphereLight.d.ts +0 -61
- package/three/src/lights/Light.d.ts +0 -82
- package/three/src/lights/LightProbe.d.ts +0 -47
- package/three/src/lights/LightShadow.d.ts +0 -169
- package/three/src/lights/PointLight.d.ts +0 -102
- package/three/src/lights/PointLightShadow.d.ts +0 -22
- package/three/src/lights/RectAreaLight.d.ts +0 -82
- package/three/src/lights/SpotLight.d.ts +0 -157
- package/three/src/lights/SpotLightShadow.d.ts +0 -72
- package/three/src/lights/webgpu/IESSpotLight.d.ts +0 -6
- package/three/src/loaders/AnimationLoader.d.ts +0 -9
- package/three/src/loaders/AudioLoader.d.ts +0 -6
- package/three/src/loaders/BufferGeometryLoader.d.ts +0 -10
- package/three/src/loaders/Cache.d.ts +0 -21
- package/three/src/loaders/CompressedTextureLoader.d.ts +0 -9
- package/three/src/loaders/CubeTextureLoader.d.ts +0 -9
- package/three/src/loaders/DataTextureLoader.d.ts +0 -9
- package/three/src/loaders/FileLoader.d.ts +0 -14
- package/three/src/loaders/ImageBitmapLoader.d.ts +0 -17
- package/three/src/loaders/ImageLoader.d.ts +0 -12
- package/three/src/loaders/Loader.d.ts +0 -45
- package/three/src/loaders/LoaderUtils.d.ts +0 -10
- package/three/src/loaders/LoadingManager.d.ts +0 -65
- package/three/src/loaders/MaterialLoader.d.ts +0 -19
- package/three/src/loaders/ObjectLoader.d.ts +0 -25
- package/three/src/loaders/TextureLoader.d.ts +0 -13
- package/three/src/materials/LineBasicMaterial.d.ts +0 -60
- package/three/src/materials/LineDashedMaterial.d.ts +0 -40
- package/three/src/materials/Material.d.ts +0 -608
- package/three/src/materials/Materials.d.ts +0 -18
- package/three/src/materials/MeshBasicMaterial.d.ts +0 -139
- package/three/src/materials/MeshDepthMaterial.d.ts +0 -76
- package/three/src/materials/MeshDistanceMaterial.d.ts +0 -62
- package/three/src/materials/MeshLambertMaterial.d.ts +0 -204
- package/three/src/materials/MeshMatcapMaterial.d.ts +0 -117
- package/three/src/materials/MeshNormalMaterial.d.ts +0 -93
- package/three/src/materials/MeshPhongMaterial.d.ts +0 -228
- package/three/src/materials/MeshPhysicalMaterial.d.ts +0 -236
- package/three/src/materials/MeshStandardMaterial.d.ts +0 -218
- package/three/src/materials/MeshToonMaterial.d.ts +0 -178
- package/three/src/materials/PointsMaterial.d.ts +0 -61
- package/three/src/materials/RawShaderMaterial.d.ts +0 -14
- package/three/src/materials/ShaderMaterial.d.ts +0 -175
- package/three/src/materials/ShadowMaterial.d.ts +0 -39
- package/three/src/materials/SpriteMaterial.d.ts +0 -66
- package/three/src/math/Box2.d.ts +0 -48
- package/three/src/math/Box3.d.ts +0 -66
- package/three/src/math/Color.d.ts +0 -358
- package/three/src/math/ColorManagement.d.ts +0 -37
- package/three/src/math/Cylindrical.d.ts +0 -26
- package/three/src/math/Euler.d.ts +0 -50
- package/three/src/math/Frustum.d.ts +0 -30
- package/three/src/math/Interpolant.d.ts +0 -10
- package/three/src/math/Line3.d.ts +0 -29
- package/three/src/math/MathUtils.d.ts +0 -131
- package/three/src/math/Matrix2.d.ts +0 -48
- package/three/src/math/Matrix3.d.ts +0 -154
- package/three/src/math/Matrix4.d.ts +0 -217
- package/three/src/math/Plane.d.ts +0 -47
- package/three/src/math/Quaternion.d.ts +0 -173
- package/three/src/math/Ray.d.ts +0 -55
- package/three/src/math/Sphere.d.ts +0 -47
- package/three/src/math/Spherical.d.ts +0 -27
- package/three/src/math/SphericalHarmonics3.d.ts +0 -50
- package/three/src/math/Triangle.d.ts +0 -54
- package/three/src/math/Vector2.d.ts +0 -321
- package/three/src/math/Vector3.d.ts +0 -301
- package/three/src/math/Vector4.d.ts +0 -239
- package/three/src/math/interpolants/CubicInterpolant.d.ts +0 -7
- package/three/src/math/interpolants/DiscreteInterpolant.d.ts +0 -7
- package/three/src/math/interpolants/LinearInterpolant.d.ts +0 -7
- package/three/src/math/interpolants/QuaternionLinearInterpolant.d.ts +0 -7
- package/three/src/nodes/Nodes.d.ts +0 -231
- package/three/src/nodes/accessors/AccessorsUtils.d.ts +0 -9
- package/three/src/nodes/accessors/BatchNode.d.ts +0 -14
- package/three/src/nodes/accessors/BitangentNode.d.ts +0 -9
- package/three/src/nodes/accessors/BufferAttributeNode.d.ts +0 -28
- package/three/src/nodes/accessors/BufferNode.d.ts +0 -13
- package/three/src/nodes/accessors/CameraNode.d.ts +0 -15
- package/three/src/nodes/accessors/ClippingNode.d.ts +0 -16
- package/three/src/nodes/accessors/CubeTextureNode.d.ts +0 -24
- package/three/src/nodes/accessors/InstanceNode.d.ts +0 -13
- package/three/src/nodes/accessors/MaterialNode.d.ts +0 -130
- package/three/src/nodes/accessors/MaterialReferenceNode.d.ts +0 -9
- package/three/src/nodes/accessors/ModelNode.d.ts +0 -20
- package/three/src/nodes/accessors/ModelViewProjectionNode.d.ts +0 -8
- package/three/src/nodes/accessors/NormalNode.d.ts +0 -12
- package/three/src/nodes/accessors/Object3DNode.d.ts +0 -26
- package/three/src/nodes/accessors/PointUVNode.d.ts +0 -10
- package/three/src/nodes/accessors/PositionNode.d.ts +0 -9
- package/three/src/nodes/accessors/ReferenceNode.d.ts +0 -22
- package/three/src/nodes/accessors/ReflectVectorNode.d.ts +0 -9
- package/three/src/nodes/accessors/RendererReferenceNode.d.ts +0 -11
- package/three/src/nodes/accessors/SkinningNode.d.ts +0 -20
- package/three/src/nodes/accessors/StorageBufferNode.d.ts +0 -26
- package/three/src/nodes/accessors/StorageTextureNode.d.ts +0 -28
- package/three/src/nodes/accessors/TangentNode.d.ts +0 -12
- package/three/src/nodes/accessors/Texture3DNode.d.ts +0 -13
- package/three/src/nodes/accessors/TextureBicubicNode.d.ts +0 -18
- package/three/src/nodes/accessors/TextureNode.d.ts +0 -37
- package/three/src/nodes/accessors/UVNode.d.ts +0 -4
- package/three/src/nodes/accessors/UniformsNode.d.ts +0 -23
- package/three/src/nodes/accessors/UserDataNode.d.ts +0 -11
- package/three/src/nodes/accessors/VertexColorNode.d.ts +0 -12
- package/three/src/nodes/code/CodeNode.d.ts +0 -23
- package/three/src/nodes/code/ExpressionNode.d.ts +0 -9
- package/three/src/nodes/code/FunctionCallNode.d.ts +0 -22
- package/three/src/nodes/code/FunctionNode.d.ts +0 -38
- package/three/src/nodes/core/AssignNode.d.ts +0 -18
- package/three/src/nodes/core/AttributeNode.d.ts +0 -15
- package/three/src/nodes/core/BypassNode.d.ts +0 -18
- package/three/src/nodes/core/CacheNode.d.ts +0 -20
- package/three/src/nodes/core/ConstNode.d.ts +0 -9
- package/three/src/nodes/core/ContextNode.d.ts +0 -21
- package/three/src/nodes/core/IndexNode.d.ts +0 -20
- package/three/src/nodes/core/InputNode.d.ts +0 -15
- package/three/src/nodes/core/LightingModel.d.ts +0 -46
- package/three/src/nodes/core/MRTNode.d.ts +0 -19
- package/three/src/nodes/core/Node.d.ts +0 -117
- package/three/src/nodes/core/NodeAttribute.d.ts +0 -9
- package/three/src/nodes/core/NodeBuilder.d.ts +0 -133
- package/three/src/nodes/core/NodeCache.d.ts +0 -49
- package/three/src/nodes/core/NodeCode.d.ts +0 -4
- package/three/src/nodes/core/NodeFrame.d.ts +0 -34
- package/three/src/nodes/core/NodeFunction.d.ts +0 -13
- package/three/src/nodes/core/NodeFunctionInput.d.ts +0 -7
- package/three/src/nodes/core/NodeKeywords.d.ts +0 -17
- package/three/src/nodes/core/NodeParser.d.ts +0 -5
- package/three/src/nodes/core/NodeUniform.d.ts +0 -14
- package/three/src/nodes/core/NodeUtils.d.ts +0 -18
- package/three/src/nodes/core/NodeVar.d.ts +0 -7
- package/three/src/nodes/core/NodeVarying.d.ts +0 -7
- package/three/src/nodes/core/OutputStructNode.d.ts +0 -12
- package/three/src/nodes/core/PropertyNode.d.ts +0 -43
- package/three/src/nodes/core/StackNode.d.ts +0 -17
- package/three/src/nodes/core/StructTypeNode.d.ts +0 -8
- package/three/src/nodes/core/TempNode.d.ts +0 -10
- package/three/src/nodes/core/UniformGroup.d.ts +0 -7
- package/three/src/nodes/core/UniformGroupNode.d.ts +0 -21
- package/three/src/nodes/core/UniformNode.d.ts +0 -20
- package/three/src/nodes/core/VarNode.d.ts +0 -28
- package/three/src/nodes/core/VaryingNode.d.ts +0 -21
- package/three/src/nodes/core/constants.d.ts +0 -27
- package/three/src/nodes/display/AfterImageNode.d.ts +0 -25
- package/three/src/nodes/display/AnamorphicNode.d.ts +0 -26
- package/three/src/nodes/display/BlendModeNode.d.ts +0 -43
- package/three/src/nodes/display/BloomNode.d.ts +0 -30
- package/three/src/nodes/display/ColorAdjustmentNode.d.ts +0 -35
- package/three/src/nodes/display/ColorSpaceNode.d.ts +0 -32
- package/three/src/nodes/display/DenoiseNode.d.ts +0 -32
- package/three/src/nodes/display/DepthOfFieldNode.d.ts +0 -24
- package/three/src/nodes/display/DotScreenNode.d.ts +0 -22
- package/three/src/nodes/display/FXAANode.d.ts +0 -19
- package/three/src/nodes/display/FilmNode.d.ts +0 -21
- package/three/src/nodes/display/FrontFacingNode.d.ts +0 -10
- package/three/src/nodes/display/GTAONode.d.ts +0 -42
- package/three/src/nodes/display/GaussianBlurNode.d.ts +0 -27
- package/three/src/nodes/display/Lut3DNode.d.ts +0 -25
- package/three/src/nodes/display/NormalMapNode.d.ts +0 -21
- package/three/src/nodes/display/PassNode.d.ts +0 -62
- package/three/src/nodes/display/PixelationPassNode.d.ts +0 -41
- package/three/src/nodes/display/PosterizeNode.d.ts +0 -17
- package/three/src/nodes/display/RGBShiftNode.d.ts +0 -24
- package/three/src/nodes/display/RenderOutputNode.d.ts +0 -24
- package/three/src/nodes/display/SobelOperatorNode.d.ts +0 -17
- package/three/src/nodes/display/ToneMappingNode.d.ts +0 -25
- package/three/src/nodes/display/TransitionNode.d.ts +0 -27
- package/three/src/nodes/display/ViewportDepthNode.d.ts +0 -28
- package/three/src/nodes/display/ViewportDepthTextureNode.d.ts +0 -9
- package/three/src/nodes/display/ViewportNode.d.ts +0 -25
- package/three/src/nodes/display/ViewportSharedTextureNode.d.ts +0 -15
- package/three/src/nodes/display/ViewportTextureNode.d.ts +0 -25
- package/three/src/nodes/fog/FogExp2Node.d.ts +0 -18
- package/three/src/nodes/fog/FogNode.d.ts +0 -21
- package/three/src/nodes/fog/FogRangeNode.d.ts +0 -19
- package/three/src/nodes/functions/BSDF/BRDF_GGX.d.ts +0 -7
- package/three/src/nodes/functions/BSDF/BRDF_Lambert.d.ts +0 -7
- package/three/src/nodes/functions/BSDF/BRDF_Sheen.d.ts +0 -7
- package/three/src/nodes/functions/BSDF/DFGApprox.d.ts +0 -11
- package/three/src/nodes/functions/BSDF/D_GGX.d.ts +0 -10
- package/three/src/nodes/functions/BSDF/D_GGX_Anisotropic.d.ts +0 -8
- package/three/src/nodes/functions/BSDF/F_Schlick.d.ts +0 -7
- package/three/src/nodes/functions/BSDF/LTC.d.ts +0 -7
- package/three/src/nodes/functions/BSDF/V_GGX_SmithCorrelated.d.ts +0 -7
- package/three/src/nodes/functions/BSDF/V_GGX_SmithCorrelated_Anisotropic.d.ts +0 -7
- package/three/src/nodes/functions/BasicLightingModel.d.ts +0 -7
- package/three/src/nodes/functions/PhongLightingModel.d.ts +0 -7
- package/three/src/nodes/functions/PhysicalLightingModel.d.ts +0 -23
- package/three/src/nodes/functions/ShadowMaskModel.d.ts +0 -9
- package/three/src/nodes/functions/ToonLightingModel.d.ts +0 -3
- package/three/src/nodes/functions/material/getGeometryRoughness.d.ts +0 -6
- package/three/src/nodes/functions/material/getRoughness.d.ts +0 -7
- package/three/src/nodes/geometry/RangeNode.d.ts +0 -19
- package/three/src/nodes/gpgpu/ComputeNode.d.ts +0 -20
- package/three/src/nodes/lighting/AONode.d.ts +0 -8
- package/three/src/nodes/lighting/AnalyticLightNode.d.ts +0 -8
- package/three/src/nodes/lighting/BasicEnvironmentNode.d.ts +0 -10
- package/three/src/nodes/lighting/BasicLightMapNode.d.ts +0 -8
- package/three/src/nodes/lighting/EnvironmentNode.d.ts +0 -8
- package/three/src/nodes/lighting/HemisphereLightNode.d.ts +0 -13
- package/three/src/nodes/lighting/IrradianceNode.d.ts +0 -8
- package/three/src/nodes/lighting/LightUtils.d.ts +0 -5
- package/three/src/nodes/lighting/LightingContextNode.d.ts +0 -22
- package/three/src/nodes/lighting/LightingNode.d.ts +0 -7
- package/three/src/nodes/lighting/LightsNode.d.ts +0 -19
- package/three/src/nodes/lighting/PointLightNode.d.ts +0 -10
- package/three/src/nodes/lighting/RectAreaLightNode.d.ts +0 -21
- package/three/src/nodes/lighting/SpotLightNode.d.ts +0 -15
- package/three/src/nodes/loaders/NodeLoader.d.ts +0 -16
- package/three/src/nodes/loaders/NodeMaterialLoader.d.ts +0 -8
- package/three/src/nodes/loaders/NodeObjectLoader.d.ts +0 -10
- package/three/src/nodes/materials/Line2NodeMaterial.d.ts +0 -53
- package/three/src/nodes/materials/LineBasicNodeMaterial.d.ts +0 -21
- package/three/src/nodes/materials/Materials.d.ts +0 -15
- package/three/src/nodes/materials/MeshBasicNodeMaterial.d.ts +0 -35
- package/three/src/nodes/materials/MeshMatcapNodeMaterial.d.ts +0 -31
- package/three/src/nodes/materials/MeshNormalNodeMaterial.d.ts +0 -27
- package/three/src/nodes/materials/MeshPhongNodeMaterial.d.ts +0 -55
- package/three/src/nodes/materials/MeshPhysicalNodeMaterial.d.ts +0 -87
- package/three/src/nodes/materials/MeshSSSNodeMaterial.d.ts +0 -16
- package/three/src/nodes/materials/MeshStandardNodeMaterial.d.ts +0 -55
- package/three/src/nodes/materials/MeshToonNodeMaterial.d.ts +0 -41
- package/three/src/nodes/materials/NodeMaterial.d.ts +0 -124
- package/three/src/nodes/materials/PointsNodeMaterial.d.ts +0 -21
- package/three/src/nodes/materials/ShadowNodeMaterial.d.ts +0 -16
- package/three/src/nodes/materials/SpriteNodeMaterial.d.ts +0 -25
- package/three/src/nodes/materials/VolumeNodeMaterial.d.ts +0 -10
- package/three/src/nodes/materialx/MaterialXNodes.d.ts +0 -36
- package/three/src/nodes/materialx/lib/mx_hsv.d.ts +0 -6
- package/three/src/nodes/materialx/lib/mx_noise.d.ts +0 -139
- package/three/src/nodes/materialx/lib/mx_transform_color.d.ts +0 -4
- package/three/src/nodes/math/CondNode.d.ts +0 -18
- package/three/src/nodes/math/HashNode.d.ts +0 -16
- package/three/src/nodes/math/MathNode.d.ts +0 -253
- package/three/src/nodes/math/MathUtils.d.ts +0 -16
- package/three/src/nodes/math/OperatorNode.d.ts +0 -61
- package/three/src/nodes/math/TriNoise3D.d.ts +0 -8
- package/three/src/nodes/pmrem/PMREMNode.d.ts +0 -16
- package/three/src/nodes/procedural/CheckerNode.d.ts +0 -15
- package/three/src/nodes/shadernode/ShaderNode.d.ts +0 -226
- package/three/src/nodes/utils/ArrayElementNode.d.ts +0 -9
- package/three/src/nodes/utils/ConvertNode.d.ts +0 -7
- package/three/src/nodes/utils/DiscardNode.d.ts +0 -17
- package/three/src/nodes/utils/EquirectUVNode.d.ts +0 -8
- package/three/src/nodes/utils/JoinNode.d.ts +0 -10
- package/three/src/nodes/utils/MatcapUVNode.d.ts +0 -8
- package/three/src/nodes/utils/MaxMipLevelNode.d.ts +0 -14
- package/three/src/nodes/utils/OscNode.d.ts +0 -21
- package/three/src/nodes/utils/PackingNode.d.ts +0 -24
- package/three/src/nodes/utils/RTTNode.d.ts +0 -40
- package/three/src/nodes/utils/ReflectorNode.d.ts +0 -32
- package/three/src/nodes/utils/RemapNode.d.ts +0 -24
- package/three/src/nodes/utils/RotateNode.d.ts +0 -18
- package/three/src/nodes/utils/RotateUVNode.d.ts +0 -19
- package/three/src/nodes/utils/SplitNode.d.ts +0 -15
- package/three/src/nodes/utils/SpriteSheetUVNode.d.ts +0 -12
- package/three/src/nodes/utils/StoargeArrayElementNode.d.ts +0 -22
- package/three/src/nodes/utils/TimerNode.d.ts +0 -21
- package/three/src/nodes/utils/TriplanarTexturesNode.d.ts +0 -25
- package/three/src/objects/BatchedMesh.d.ts +0 -193
- package/three/src/objects/Bone.d.ts +0 -36
- package/three/src/objects/Group.d.ts +0 -43
- package/three/src/objects/InstancedMesh.d.ts +0 -175
- package/three/src/objects/LOD.d.ts +0 -104
- package/three/src/objects/Line.d.ts +0 -83
- package/three/src/objects/LineLoop.d.ts +0 -36
- package/three/src/objects/LineSegments.d.ts +0 -37
- package/three/src/objects/Mesh.d.ts +0 -90
- package/three/src/objects/Points.d.ts +0 -62
- package/three/src/objects/Skeleton.d.ts +0 -120
- package/three/src/objects/SkinnedMesh.d.ts +0 -156
- package/three/src/objects/Sprite.d.ts +0 -65
- package/three/src/renderers/WebGL3DRenderTarget.d.ts +0 -29
- package/three/src/renderers/WebGLArrayRenderTarget.d.ts +0 -29
- package/three/src/renderers/WebGLCubeRenderTarget.d.ts +0 -18
- package/three/src/renderers/WebGLRenderTarget.d.ts +0 -8
- package/three/src/renderers/WebGLRenderer.d.ts +0 -516
- package/three/src/renderers/common/Animation.d.ts +0 -13
- package/three/src/renderers/common/Attributes.d.ts +0 -22
- package/three/src/renderers/common/Backend.d.ts +0 -19
- package/three/src/renderers/common/Background.d.ts +0 -23
- package/three/src/renderers/common/BindGroup.d.ts +0 -9
- package/three/src/renderers/common/Binding.d.ts +0 -8
- package/three/src/renderers/common/Bindings.d.ts +0 -35
- package/three/src/renderers/common/Buffer.d.ts +0 -11
- package/three/src/renderers/common/BufferUtils.d.ts +0 -4
- package/three/src/renderers/common/ChainMap.d.ts +0 -9
- package/three/src/renderers/common/ClippingContext.d.ts +0 -23
- package/three/src/renderers/common/Color4.d.ts +0 -10
- package/three/src/renderers/common/ComputePipeline.d.ts +0 -8
- package/three/src/renderers/common/Constants.d.ts +0 -9
- package/three/src/renderers/common/CubeRenderTarget.d.ts +0 -10
- package/three/src/renderers/common/DataMap.d.ts +0 -30
- package/three/src/renderers/common/Geometries.d.ts +0 -31
- package/three/src/renderers/common/Info.d.ts +0 -34
- package/three/src/renderers/common/Pipeline.d.ts +0 -6
- package/three/src/renderers/common/Pipelines.d.ts +0 -53
- package/three/src/renderers/common/PostProcessing.d.ts +0 -21
- package/three/src/renderers/common/ProgrammableStage.d.ts +0 -10
- package/three/src/renderers/common/QuadMesh.d.ts +0 -14
- package/three/src/renderers/common/RenderBundle.d.ts +0 -9
- package/three/src/renderers/common/RenderBundles.d.ts +0 -11
- package/three/src/renderers/common/RenderContext.d.ts +0 -41
- package/three/src/renderers/common/RenderContexts.d.ts +0 -15
- package/three/src/renderers/common/RenderList.d.ts +0 -42
- package/three/src/renderers/common/RenderLists.d.ts +0 -11
- package/three/src/renderers/common/RenderObject.d.ts +0 -61
- package/three/src/renderers/common/RenderObjects.d.ts +0 -31
- package/three/src/renderers/common/RenderPipeline.d.ts +0 -8
- package/three/src/renderers/common/Renderer.d.ts +0 -183
- package/three/src/renderers/common/SampledTexture.d.ts +0 -27
- package/three/src/renderers/common/Sampler.d.ts +0 -11
- package/three/src/renderers/common/StorageBufferAttribute.d.ts +0 -7
- package/three/src/renderers/common/StorageInstancedBufferAttribute.d.ts +0 -8
- package/three/src/renderers/common/StorageTexture.d.ts +0 -5
- package/three/src/renderers/common/Textures.d.ts +0 -67
- package/three/src/renderers/common/Uniform.d.ts +0 -45
- package/three/src/renderers/common/UniformBuffer.d.ts +0 -6
- package/three/src/renderers/common/UniformsGroup.d.ts +0 -23
- package/three/src/renderers/common/extras/PMREMGenerator.d.ts +0 -9
- package/three/src/renderers/common/nodes/NodeBuilderState.d.ts +0 -19
- package/three/src/renderers/common/nodes/NodeSampledTexture.d.ts +0 -24
- package/three/src/renderers/common/nodes/NodeSampler.d.ts +0 -12
- package/three/src/renderers/common/nodes/NodeUniform.d.ts +0 -45
- package/three/src/renderers/common/nodes/NodeUniformsGroup.d.ts +0 -10
- package/three/src/renderers/common/nodes/Nodes.d.ts +0 -98
- package/three/src/renderers/shaders/ShaderChunk.d.ts +0 -143
- package/three/src/renderers/shaders/ShaderLib.d.ts +0 -29
- package/three/src/renderers/shaders/UniformsLib.d.ts +0 -189
- package/three/src/renderers/shaders/UniformsUtils.d.ts +0 -14
- package/three/src/renderers/webgl/WebGLAttributes.d.ts +0 -21
- package/three/src/renderers/webgl/WebGLBindingStates.d.ts +0 -20
- package/three/src/renderers/webgl/WebGLBufferRenderer.d.ts +0 -12
- package/three/src/renderers/webgl/WebGLCapabilities.d.ts +0 -35
- package/three/src/renderers/webgl/WebGLClipping.d.ts +0 -26
- package/three/src/renderers/webgl/WebGLCubeMaps.d.ts +0 -8
- package/three/src/renderers/webgl/WebGLCubeUVMaps.d.ts +0 -9
- package/three/src/renderers/webgl/WebGLExtensions.d.ts +0 -7
- package/three/src/renderers/webgl/WebGLGeometries.d.ts +0 -13
- package/three/src/renderers/webgl/WebGLIndexedBufferRenderer.d.ts +0 -10
- package/three/src/renderers/webgl/WebGLInfo.d.ts +0 -39
- package/three/src/renderers/webgl/WebGLLights.d.ts +0 -49
- package/three/src/renderers/webgl/WebGLObjects.d.ts +0 -6
- package/three/src/renderers/webgl/WebGLProgram.d.ts +0 -30
- package/three/src/renderers/webgl/WebGLPrograms.d.ts +0 -218
- package/three/src/renderers/webgl/WebGLProperties.d.ts +0 -8
- package/three/src/renderers/webgl/WebGLRenderLists.d.ts +0 -52
- package/three/src/renderers/webgl/WebGLShader.d.ts +0 -1
- package/three/src/renderers/webgl/WebGLShadowMap.d.ts +0 -38
- package/three/src/renderers/webgl/WebGLState.d.ts +0 -71
- package/three/src/renderers/webgl/WebGLTextures.d.ts +0 -22
- package/three/src/renderers/webgl/WebGLUniforms.d.ts +0 -12
- package/three/src/renderers/webgl/WebGLUniformsGroups.d.ts +0 -17
- package/three/src/renderers/webgl/WebGLUtils.d.ts +0 -8
- package/three/src/renderers/webgl-fallback/WebGLBackend.d.ts +0 -14
- package/three/src/renderers/webgpu/WebGPUBackend.d.ts +0 -21
- package/three/src/renderers/webgpu/WebGPURenderer.d.ts +0 -10
- package/three/src/renderers/webgpu/nodes/WGSLNodeBuilder.d.ts +0 -75
- package/three/src/renderers/webgpu/nodes/WGSLNodeFunction.d.ts +0 -6
- package/three/src/renderers/webgpu/nodes/WGSLNodeParser.d.ts +0 -6
- package/three/src/renderers/webgpu/utils/WebGPUConstants.d.ts +0 -328
- package/three/src/renderers/webxr/WebXRController.d.ts +0 -63
- package/three/src/renderers/webxr/WebXRDepthSensing.d.ts +0 -22
- package/three/src/renderers/webxr/WebXRManager.d.ts +0 -87
- package/three/src/scenes/Fog.d.ts +0 -77
- package/three/src/scenes/FogExp2.d.ts +0 -66
- package/three/src/scenes/Scene.d.ts +0 -118
- package/three/src/textures/CanvasTexture.d.ts +0 -34
- package/three/src/textures/CompressedArrayTexture.d.ts +0 -61
- package/three/src/textures/CompressedCubeTexture.d.ts +0 -9
- package/three/src/textures/CompressedTexture.d.ts +0 -74
- package/three/src/textures/CubeTexture.d.ts +0 -82
- package/three/src/textures/Data3DTexture.d.ts +0 -96
- package/three/src/textures/DataArrayTexture.d.ts +0 -123
- package/three/src/textures/DataTexture.d.ts +0 -92
- package/three/src/textures/DepthTexture.d.ts +0 -85
- package/three/src/textures/FramebufferTexture.d.ts +0 -62
- package/three/src/textures/Source.d.ts +0 -75
- package/three/src/textures/Texture.d.ts +0 -445
- package/three/src/textures/VideoTexture.d.ts +0 -73
- package/three/src/textures/types.d.ts +0 -9
- package/three/src/utils.d.ts +0 -3
- package/three/three.webgpu.d.ts +0 -1
- package/three.webgpu.d.ts +0 -1
- package/three.webgpu.js +0 -63045
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
export type Matrix2Tuple = [n11: number, n12: number, n21: number, n22: number];
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* A class representing a 2x2 {@link https://en.wikipedia.org/wiki/Matrix_(mathematics) matrix}.
|
|
5
|
-
*
|
|
6
|
-
* @example
|
|
7
|
-
* const m = new Matrix2();
|
|
8
|
-
*/
|
|
9
|
-
export class Matrix2 {
|
|
10
|
-
readonly isMatrix2: true;
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* A {@link https://en.wikipedia.org/wiki/Row-_and_column-major_order column-major} list of matrix values.
|
|
14
|
-
*/
|
|
15
|
-
elements: Matrix2Tuple;
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Creates a 2x2 {@link https://en.wikipedia.org/wiki/Identity_matrix identity matrix}.
|
|
19
|
-
*/
|
|
20
|
-
constructor();
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Creates a 2x2 matrix with the given arguments in row-major order.
|
|
24
|
-
*/
|
|
25
|
-
constructor(n11: number, n12: number, n21: number, n22: number);
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Resets this matrix to the 2x2 identity matrix:
|
|
29
|
-
*/
|
|
30
|
-
identity(): this;
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Sets the elements of this matrix based on an array in
|
|
34
|
-
* {@link https://en.wikipedia.org/wiki/Row-_and_column-major_order#Column-major_order column-major} format.
|
|
35
|
-
*
|
|
36
|
-
* @param array the array to read the elements from
|
|
37
|
-
* @param offset (optional) index of first element in the array. Default is `0`.
|
|
38
|
-
*/
|
|
39
|
-
fromArray(array: ArrayLike<number>, offset?: number): this;
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* Sets the 2x2 matrix values to the given
|
|
43
|
-
* {@link https://en.wikipedia.org/wiki/Row-_and_column-major_order row-major} sequence of values:
|
|
44
|
-
* [n11, n12,
|
|
45
|
-
* n21, n22]
|
|
46
|
-
*/
|
|
47
|
-
set(n11: number, n12: number, n21: number, n22: number): this;
|
|
48
|
-
}
|
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
// https://threejs.org/docs/#api/en/math/Matrix3
|
|
2
|
-
|
|
3
|
-
import { Matrix4 } from './Matrix4.js';
|
|
4
|
-
import { Vector2 } from './Vector2.js';
|
|
5
|
-
import { Vector3 } from './Vector3.js';
|
|
6
|
-
|
|
7
|
-
export type Matrix3Tuple = [n11: number, n12: number, n13: number, n21: number, n22: number, n23: number, n31: number, n32: number, n33: number];
|
|
8
|
-
|
|
9
|
-
export class Matrix3 {
|
|
10
|
-
readonly isMatrix3: true;
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Array with matrix values.
|
|
14
|
-
* @default [1, 0, 0, 0, 1, 0, 0, 0, 1]
|
|
15
|
-
*/
|
|
16
|
-
elements: Matrix3Tuple;
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Creates an identity matrix.
|
|
20
|
-
*/
|
|
21
|
-
constructor();
|
|
22
|
-
/**
|
|
23
|
-
* Creates a 3x3 matrix with the given arguments in row-major order.
|
|
24
|
-
*/
|
|
25
|
-
constructor(n11: number, n12: number, n13: number, n21: number, n22: number, n23: number, n31: number, n32: number, n33: number);
|
|
26
|
-
|
|
27
|
-
set(n11: number, n12: number, n13: number, n21: number, n22: number, n23: number, n31: number, n32: number, n33: number): Matrix3;
|
|
28
|
-
|
|
29
|
-
identity(): this;
|
|
30
|
-
|
|
31
|
-
copy(m: Matrix3): this;
|
|
32
|
-
|
|
33
|
-
extractBasis(xAxis: Vector3, yAxis: Vector3, zAxis: Vector3): this;
|
|
34
|
-
|
|
35
|
-
setFromMatrix4(m: Matrix4): Matrix3;
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Multiplies this matrix by m.
|
|
39
|
-
*/
|
|
40
|
-
multiply(m: Matrix3): this;
|
|
41
|
-
|
|
42
|
-
premultiply(m: Matrix3): this;
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Sets this matrix to a x b.
|
|
46
|
-
*/
|
|
47
|
-
multiplyMatrices(a: Matrix3, b: Matrix3): this;
|
|
48
|
-
|
|
49
|
-
multiplyScalar(s: number): this;
|
|
50
|
-
|
|
51
|
-
determinant(): number;
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* Inverts this matrix in place.
|
|
55
|
-
*/
|
|
56
|
-
invert(): this;
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* Transposes this matrix in place.
|
|
60
|
-
*/
|
|
61
|
-
transpose(): this;
|
|
62
|
-
|
|
63
|
-
getNormalMatrix(matrix4: Matrix4): this;
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* Transposes this matrix into the supplied array r, and returns itself.
|
|
67
|
-
*/
|
|
68
|
-
transposeIntoArray(r: number[]): this;
|
|
69
|
-
|
|
70
|
-
setUvTransform(tx: number, ty: number, sx: number, sy: number, rotation: number, cx: number, cy: number): this;
|
|
71
|
-
|
|
72
|
-
scale(sx: number, sy: number): this;
|
|
73
|
-
|
|
74
|
-
rotate(theta: number): this;
|
|
75
|
-
|
|
76
|
-
translate(tx: number, ty: number): this;
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* Sets this matrix as a 2D translation transform:
|
|
80
|
-
*
|
|
81
|
-
* ```
|
|
82
|
-
* 1, 0, x,
|
|
83
|
-
* 0, 1, y,
|
|
84
|
-
* 0, 0, 1
|
|
85
|
-
* ```
|
|
86
|
-
*
|
|
87
|
-
* @param v the amount to translate.
|
|
88
|
-
*/
|
|
89
|
-
makeTranslation(v: Vector2): this;
|
|
90
|
-
/**
|
|
91
|
-
* Sets this matrix as a 2D translation transform:
|
|
92
|
-
*
|
|
93
|
-
* ```
|
|
94
|
-
* 1, 0, x,
|
|
95
|
-
* 0, 1, y,
|
|
96
|
-
* 0, 0, 1
|
|
97
|
-
* ```
|
|
98
|
-
*
|
|
99
|
-
* @param x the amount to translate in the X axis.
|
|
100
|
-
* @param y the amount to translate in the Y axis.
|
|
101
|
-
*/
|
|
102
|
-
makeTranslation(x: number, y: number): this;
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
* Sets this matrix as a 2D rotational transformation by theta radians. The resulting matrix will be:
|
|
106
|
-
*
|
|
107
|
-
* ```
|
|
108
|
-
* cos(θ) -sin(θ) 0
|
|
109
|
-
* sin(θ) cos(θ) 0
|
|
110
|
-
* 0 0 1
|
|
111
|
-
* ```
|
|
112
|
-
*
|
|
113
|
-
* @param theta Rotation angle in radians. Positive values rotate counterclockwise.
|
|
114
|
-
*/
|
|
115
|
-
makeRotation(theta: number): this;
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* Sets this matrix as a 2D scale transform:
|
|
119
|
-
*
|
|
120
|
-
* ```
|
|
121
|
-
* x, 0, 0,
|
|
122
|
-
* 0, y, 0,
|
|
123
|
-
* 0, 0, 1
|
|
124
|
-
* ```
|
|
125
|
-
*
|
|
126
|
-
* @param x the amount to scale in the X axis.
|
|
127
|
-
* @param y the amount to scale in the Y axis.
|
|
128
|
-
*/
|
|
129
|
-
makeScale(x: number, y: number): this;
|
|
130
|
-
|
|
131
|
-
equals(matrix: Matrix3): boolean;
|
|
132
|
-
|
|
133
|
-
/**
|
|
134
|
-
* Sets the values of this matrix from the provided array or array-like.
|
|
135
|
-
* @param array the source array or array-like.
|
|
136
|
-
* @param offset (optional) offset into the array-like. Default is 0.
|
|
137
|
-
*/
|
|
138
|
-
fromArray(array: ArrayLike<number>, offset?: number): this;
|
|
139
|
-
|
|
140
|
-
/**
|
|
141
|
-
* Writes the elements of this matrix to an array in
|
|
142
|
-
* {@link https://en.wikipedia.org/wiki/Row-_and_column-major_order#Column-major_order column-major} format.
|
|
143
|
-
*/
|
|
144
|
-
toArray(): Matrix3Tuple;
|
|
145
|
-
/**
|
|
146
|
-
* Writes the elements of this matrix to an array in
|
|
147
|
-
* {@link https://en.wikipedia.org/wiki/Row-_and_column-major_order#Column-major_order column-major} format.
|
|
148
|
-
* @param array array to store the resulting vector in. If not given a new array will be created.
|
|
149
|
-
* @param offset (optional) offset in the array at which to put the result.
|
|
150
|
-
*/
|
|
151
|
-
toArray<TArray extends ArrayLike<number>>(array: TArray, offset?: number): TArray;
|
|
152
|
-
|
|
153
|
-
clone(): this;
|
|
154
|
-
}
|
|
@@ -1,217 +0,0 @@
|
|
|
1
|
-
import { CoordinateSystem } from '../constants.js';
|
|
2
|
-
import { Euler } from './Euler.js';
|
|
3
|
-
import { Matrix3 } from './Matrix3.js';
|
|
4
|
-
import { Quaternion } from './Quaternion.js';
|
|
5
|
-
import { Vector3 } from './Vector3.js';
|
|
6
|
-
|
|
7
|
-
export type Matrix4Tuple = [n11: number, n12: number, n13: number, n14: number, n21: number, n22: number, n23: number, n24: number, n31: number, n32: number, n33: number, n34: number, n41: number, n42: number, n43: number, n44: number];
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* A 4x4 Matrix.
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* // Simple rig for rotating around 3 axes
|
|
14
|
-
* const m = new THREE.Matrix4();
|
|
15
|
-
* const m1 = new THREE.Matrix4();
|
|
16
|
-
* const m2 = new THREE.Matrix4();
|
|
17
|
-
* const m3 = new THREE.Matrix4();
|
|
18
|
-
* const alpha = 0;
|
|
19
|
-
* const beta = Math.PI;
|
|
20
|
-
* const gamma = Math.PI/2;
|
|
21
|
-
* m1.makeRotationX( alpha );
|
|
22
|
-
* m2.makeRotationY( beta );
|
|
23
|
-
* m3.makeRotationZ( gamma );
|
|
24
|
-
* m.multiplyMatrices( m1, m2 );
|
|
25
|
-
* m.multiply( m3 );
|
|
26
|
-
*/
|
|
27
|
-
export class Matrix4 {
|
|
28
|
-
readonly isMatrix4: true;
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Array with matrix values.
|
|
32
|
-
* @default [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]
|
|
33
|
-
*/
|
|
34
|
-
elements: Matrix4Tuple;
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Creates an identity matrix.
|
|
38
|
-
*/
|
|
39
|
-
constructor();
|
|
40
|
-
/**
|
|
41
|
-
* Creates a 4x4 matrix with the given arguments in row-major order.
|
|
42
|
-
*/
|
|
43
|
-
constructor(n11: number, n12: number, n13: number, n14: number, n21: number, n22: number, n23: number, n24: number, n31: number, n32: number, n33: number, n34: number, n41: number, n42: number, n43: number, n44: number);
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* Sets all fields of this matrix.
|
|
47
|
-
*/
|
|
48
|
-
set(n11: number, n12: number, n13: number, n14: number, n21: number, n22: number, n23: number, n24: number, n31: number, n32: number, n33: number, n34: number, n41: number, n42: number, n43: number, n44: number): this;
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* Resets this matrix to identity.
|
|
52
|
-
*/
|
|
53
|
-
identity(): this;
|
|
54
|
-
|
|
55
|
-
clone(): Matrix4;
|
|
56
|
-
|
|
57
|
-
copy(m: Matrix4): this;
|
|
58
|
-
|
|
59
|
-
copyPosition(m: Matrix4): this;
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Set the upper 3x3 elements of this matrix to the values of the Matrix3 m.
|
|
63
|
-
*/
|
|
64
|
-
setFromMatrix3(m: Matrix3): this;
|
|
65
|
-
|
|
66
|
-
extractBasis(xAxis: Vector3, yAxis: Vector3, zAxis: Vector3): this;
|
|
67
|
-
|
|
68
|
-
makeBasis(xAxis: Vector3, yAxis: Vector3, zAxis: Vector3): this;
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* Copies the rotation component of the supplied matrix m into this matrix rotation component.
|
|
72
|
-
*/
|
|
73
|
-
extractRotation(m: Matrix4): this;
|
|
74
|
-
|
|
75
|
-
makeRotationFromEuler(euler: Euler): this;
|
|
76
|
-
|
|
77
|
-
makeRotationFromQuaternion(q: Quaternion): this;
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* Constructs a rotation matrix, looking from eye towards center with defined up vector.
|
|
81
|
-
*/
|
|
82
|
-
lookAt(eye: Vector3, target: Vector3, up: Vector3): this;
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* Multiplies this matrix by m.
|
|
86
|
-
*/
|
|
87
|
-
multiply(m: Matrix4): this;
|
|
88
|
-
|
|
89
|
-
premultiply(m: Matrix4): this;
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* Sets this matrix to a x b.
|
|
93
|
-
*/
|
|
94
|
-
multiplyMatrices(a: Matrix4, b: Matrix4): this;
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* Multiplies this matrix by s.
|
|
98
|
-
*/
|
|
99
|
-
multiplyScalar(s: number): this;
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* Computes determinant of this matrix.
|
|
103
|
-
* Based on http://www.euclideanspace.com/maths/algebra/matrix/functions/inverse/fourD/index.htm
|
|
104
|
-
*/
|
|
105
|
-
determinant(): number;
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
* Transposes this matrix.
|
|
109
|
-
*/
|
|
110
|
-
transpose(): this;
|
|
111
|
-
|
|
112
|
-
/**
|
|
113
|
-
* Sets the position component for this matrix from vector v.
|
|
114
|
-
*/
|
|
115
|
-
setPosition(v: Vector3): this;
|
|
116
|
-
setPosition(x: number, y: number, z: number): this;
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* Inverts this matrix.
|
|
120
|
-
*/
|
|
121
|
-
invert(): this;
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* Multiplies the columns of this matrix by vector v.
|
|
125
|
-
*/
|
|
126
|
-
scale(v: Vector3): this;
|
|
127
|
-
|
|
128
|
-
getMaxScaleOnAxis(): number;
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* Sets this matrix as translation transform.
|
|
132
|
-
*/
|
|
133
|
-
makeTranslation(v: Vector3): this;
|
|
134
|
-
makeTranslation(x: number, y: number, z: number): this;
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* Sets this matrix as rotation transform around x axis by theta radians.
|
|
138
|
-
*
|
|
139
|
-
* @param theta Rotation angle in radians.
|
|
140
|
-
*/
|
|
141
|
-
makeRotationX(theta: number): this;
|
|
142
|
-
|
|
143
|
-
/**
|
|
144
|
-
* Sets this matrix as rotation transform around y axis by theta radians.
|
|
145
|
-
*
|
|
146
|
-
* @param theta Rotation angle in radians.
|
|
147
|
-
*/
|
|
148
|
-
makeRotationY(theta: number): this;
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* Sets this matrix as rotation transform around z axis by theta radians.
|
|
152
|
-
*
|
|
153
|
-
* @param theta Rotation angle in radians.
|
|
154
|
-
*/
|
|
155
|
-
makeRotationZ(theta: number): this;
|
|
156
|
-
|
|
157
|
-
/**
|
|
158
|
-
* Sets this matrix as rotation transform around axis by angle radians.
|
|
159
|
-
* Based on http://www.gamedev.net/reference/articles/article1199.asp.
|
|
160
|
-
*
|
|
161
|
-
* @param axis Rotation axis.
|
|
162
|
-
* @param angle Rotation angle in radians.
|
|
163
|
-
*/
|
|
164
|
-
makeRotationAxis(axis: Vector3, angle: number): this;
|
|
165
|
-
|
|
166
|
-
/**
|
|
167
|
-
* Sets this matrix as scale transform.
|
|
168
|
-
*/
|
|
169
|
-
makeScale(x: number, y: number, z: number): this;
|
|
170
|
-
|
|
171
|
-
/**
|
|
172
|
-
* Sets this matrix as shear transform.
|
|
173
|
-
*/
|
|
174
|
-
makeShear(xy: number, xz: number, yx: number, yz: number, zx: number, zy: number): this;
|
|
175
|
-
|
|
176
|
-
/**
|
|
177
|
-
* Sets this matrix to the transformation composed of translation, rotation and scale.
|
|
178
|
-
*/
|
|
179
|
-
compose(position: Vector3, quaternion: Quaternion, scale: Vector3): this;
|
|
180
|
-
|
|
181
|
-
/**
|
|
182
|
-
* Decomposes this matrix into it's position, quaternion and scale components.
|
|
183
|
-
*/
|
|
184
|
-
decompose(position: Vector3, quaternion: Quaternion, scale: Vector3): this;
|
|
185
|
-
|
|
186
|
-
/**
|
|
187
|
-
* Creates a perspective projection matrix.
|
|
188
|
-
*/
|
|
189
|
-
makePerspective(left: number, right: number, top: number, bottom: number, near: number, far: number, coordinateSystem?: CoordinateSystem): this;
|
|
190
|
-
|
|
191
|
-
/**
|
|
192
|
-
* Creates an orthographic projection matrix.
|
|
193
|
-
*/
|
|
194
|
-
makeOrthographic(left: number, right: number, top: number, bottom: number, near: number, far: number, coordinateSystem?: CoordinateSystem): this;
|
|
195
|
-
|
|
196
|
-
equals(matrix: Matrix4): boolean;
|
|
197
|
-
|
|
198
|
-
/**
|
|
199
|
-
* Sets the values of this matrix from the provided array or array-like.
|
|
200
|
-
* @param array the source array or array-like.
|
|
201
|
-
* @param offset (optional) offset into the array-like. Default is 0.
|
|
202
|
-
*/
|
|
203
|
-
fromArray(array: ArrayLike<number>, offset?: number): this;
|
|
204
|
-
|
|
205
|
-
/**
|
|
206
|
-
* Writes the elements of this matrix to an array in
|
|
207
|
-
* {@link https://en.wikipedia.org/wiki/Row-_and_column-major_order#Column-major_order column-major} format.
|
|
208
|
-
*/
|
|
209
|
-
toArray(): Matrix4Tuple;
|
|
210
|
-
/**
|
|
211
|
-
* Writes the elements of this matrix to an array in
|
|
212
|
-
* {@link https://en.wikipedia.org/wiki/Row-_and_column-major_order#Column-major_order column-major} format.
|
|
213
|
-
* @param array array to store the resulting vector in.
|
|
214
|
-
* @param offset (optional) offset in the array at which to put the result.
|
|
215
|
-
*/
|
|
216
|
-
toArray<TArray extends ArrayLike<number>>(array: TArray, offset?: number): TArray;
|
|
217
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { Box3 } from './Box3.js';
|
|
2
|
-
import { Line3 } from './Line3.js';
|
|
3
|
-
import { Matrix3 } from './Matrix3.js';
|
|
4
|
-
import { Matrix4 } from './Matrix4.js';
|
|
5
|
-
import { Sphere } from './Sphere.js';
|
|
6
|
-
import { Vector3 } from './Vector3.js';
|
|
7
|
-
|
|
8
|
-
export class Plane {
|
|
9
|
-
constructor(normal?: Vector3, constant?: number);
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @default new THREE.Vector3( 1, 0, 0 )
|
|
13
|
-
*/
|
|
14
|
-
normal: Vector3;
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* @default 0
|
|
18
|
-
*/
|
|
19
|
-
constant: number;
|
|
20
|
-
|
|
21
|
-
readonly isPlane: true;
|
|
22
|
-
|
|
23
|
-
set(normal: Vector3, constant: number): Plane;
|
|
24
|
-
setComponents(x: number, y: number, z: number, w: number): Plane;
|
|
25
|
-
setFromNormalAndCoplanarPoint(normal: Vector3, point: Vector3): Plane;
|
|
26
|
-
setFromCoplanarPoints(a: Vector3, b: Vector3, c: Vector3): Plane;
|
|
27
|
-
clone(): this;
|
|
28
|
-
copy(plane: Plane): this;
|
|
29
|
-
normalize(): Plane;
|
|
30
|
-
negate(): Plane;
|
|
31
|
-
distanceToPoint(point: Vector3): number;
|
|
32
|
-
distanceToSphere(sphere: Sphere): number;
|
|
33
|
-
projectPoint(point: Vector3, target: Vector3): Vector3;
|
|
34
|
-
intersectLine(line: Line3, target: Vector3): Vector3 | null;
|
|
35
|
-
intersectsLine(line: Line3): boolean;
|
|
36
|
-
intersectsBox(box: Box3): boolean;
|
|
37
|
-
intersectsSphere(sphere: Sphere): boolean;
|
|
38
|
-
coplanarPoint(target: Vector3): Vector3;
|
|
39
|
-
applyMatrix4(matrix: Matrix4, optionalNormalMatrix?: Matrix3): Plane;
|
|
40
|
-
translate(offset: Vector3): Plane;
|
|
41
|
-
equals(plane: Plane): boolean;
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* @deprecated Use {@link Plane#intersectsLine .intersectsLine()} instead.
|
|
45
|
-
*/
|
|
46
|
-
isIntersectionLine(l: any): any;
|
|
47
|
-
}
|
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
import { BufferAttribute } from '../core/BufferAttribute.js';
|
|
2
|
-
import { InterleavedBufferAttribute } from '../core/InterleavedBufferAttribute.js';
|
|
3
|
-
import { Euler } from './Euler.js';
|
|
4
|
-
import { Matrix4 } from './Matrix4.js';
|
|
5
|
-
import { Vector3, Vector3Like } from './Vector3.js';
|
|
6
|
-
|
|
7
|
-
export interface QuaternionLike {
|
|
8
|
-
readonly x: number;
|
|
9
|
-
readonly y: number;
|
|
10
|
-
readonly z: number;
|
|
11
|
-
readonly w: number;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export type QuaternionTuple = [x: number, y: number, z: number, w: number];
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Implementation of a quaternion. This is used for rotating things without incurring in the dreaded gimbal lock issue, amongst other advantages.
|
|
18
|
-
*
|
|
19
|
-
* @example
|
|
20
|
-
* const quaternion = new THREE.Quaternion();
|
|
21
|
-
* quaternion.setFromAxisAngle( new THREE.Vector3( 0, 1, 0 ), Math.PI / 2 );
|
|
22
|
-
* const vector = new THREE.Vector3( 1, 0, 0 );
|
|
23
|
-
* vector.applyQuaternion( quaternion );
|
|
24
|
-
*/
|
|
25
|
-
export class Quaternion {
|
|
26
|
-
/**
|
|
27
|
-
* @param x x coordinate
|
|
28
|
-
* @param y y coordinate
|
|
29
|
-
* @param z z coordinate
|
|
30
|
-
* @param w w coordinate
|
|
31
|
-
*/
|
|
32
|
-
constructor(x?: number, y?: number, z?: number, w?: number);
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* @default 0
|
|
36
|
-
*/
|
|
37
|
-
x: number;
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* @default 0
|
|
41
|
-
*/
|
|
42
|
-
y: number;
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* @default 0
|
|
46
|
-
*/
|
|
47
|
-
z: number;
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* @default 1
|
|
51
|
-
*/
|
|
52
|
-
w: number;
|
|
53
|
-
readonly isQuaternion: true;
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Sets values of this quaternion.
|
|
57
|
-
*/
|
|
58
|
-
set(x: number, y: number, z: number, w: number): this;
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* Clones this quaternion.
|
|
62
|
-
*/
|
|
63
|
-
clone(): this;
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* Copies values of q to this quaternion.
|
|
67
|
-
*/
|
|
68
|
-
copy(q: QuaternionLike): this;
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* Sets this quaternion from rotation specified by Euler angles.
|
|
72
|
-
*/
|
|
73
|
-
setFromEuler(euler: Euler, update?: boolean): this;
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* Sets this quaternion from rotation specified by axis and angle.
|
|
77
|
-
* Adapted from http://www.euclideanspace.com/maths/geometry/rotations/conversions/angleToQuaternion/index.htm.
|
|
78
|
-
* Axis have to be normalized, angle is in radians.
|
|
79
|
-
*/
|
|
80
|
-
setFromAxisAngle(axis: Vector3Like, angle: number): this;
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* Sets this quaternion from rotation component of m. Adapted from http://www.euclideanspace.com/maths/geometry/rotations/conversions/matrixToQuaternion/index.htm.
|
|
84
|
-
*/
|
|
85
|
-
setFromRotationMatrix(m: Matrix4): this;
|
|
86
|
-
setFromUnitVectors(vFrom: Vector3, vTo: Vector3Like): this;
|
|
87
|
-
angleTo(q: Quaternion): number;
|
|
88
|
-
rotateTowards(q: Quaternion, step: number): this;
|
|
89
|
-
|
|
90
|
-
identity(): this;
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* Inverts this quaternion.
|
|
94
|
-
*/
|
|
95
|
-
invert(): this;
|
|
96
|
-
|
|
97
|
-
conjugate(): this;
|
|
98
|
-
dot(v: Quaternion): number;
|
|
99
|
-
lengthSq(): number;
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* Computes length of this quaternion.
|
|
103
|
-
*/
|
|
104
|
-
length(): number;
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* Normalizes this quaternion.
|
|
108
|
-
*/
|
|
109
|
-
normalize(): this;
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* Multiplies this quaternion by b.
|
|
113
|
-
*/
|
|
114
|
-
multiply(q: Quaternion): this;
|
|
115
|
-
premultiply(q: Quaternion): this;
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* Sets this quaternion to a x b
|
|
119
|
-
* Adapted from http://www.euclideanspace.com/maths/algebra/realNormedAlgebra/quaternions/code/index.htm.
|
|
120
|
-
*/
|
|
121
|
-
multiplyQuaternions(a: Quaternion, b: Quaternion): this;
|
|
122
|
-
|
|
123
|
-
slerp(qb: Quaternion, t: number): this;
|
|
124
|
-
slerpQuaternions(qa: Quaternion, qb: Quaternion, t: number): this;
|
|
125
|
-
equals(v: Quaternion): boolean;
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* Sets this quaternion's x, y, z and w value from the provided array or array-like.
|
|
129
|
-
* @param array the source array or array-like.
|
|
130
|
-
* @param offset (optional) offset into the array. Default is 0.
|
|
131
|
-
*/
|
|
132
|
-
fromArray(array: QuaternionTuple, offset?: number): this;
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* Returns an array [x, y, z, w], or copies x, y, z and w into the provided array.
|
|
136
|
-
* @param array (optional) array to store the quaternion to. If this is not provided, a new array will be created.
|
|
137
|
-
* @param offset (optional) optional offset into the array.
|
|
138
|
-
* @return The created or provided array.
|
|
139
|
-
*/
|
|
140
|
-
toArray(array?: number[], offset?: number): QuaternionTuple;
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* Copies x, y, z and w into the provided array-like.
|
|
144
|
-
* @param array array-like to store the quaternion to.
|
|
145
|
-
* @param offset (optional) optional offset into the array.
|
|
146
|
-
* @return The provided array-like.
|
|
147
|
-
*/
|
|
148
|
-
toArray(array: ArrayLike<number>, offset?: number): QuaternionTuple;
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* This method defines the serialization result of Quaternion.
|
|
152
|
-
* @return The numerical elements of this quaternion in an array of format [x, y, z, w].
|
|
153
|
-
*/
|
|
154
|
-
toJSON(): [number, number, number, number];
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
* Sets x, y, z, w properties of this quaternion from the attribute.
|
|
158
|
-
* @param attribute the source attribute.
|
|
159
|
-
* @param index index in the attribute.
|
|
160
|
-
*/
|
|
161
|
-
fromBufferAttribute(attribute: BufferAttribute | InterleavedBufferAttribute, index: number): this;
|
|
162
|
-
|
|
163
|
-
_onChange(callback: () => void): this;
|
|
164
|
-
_onChangeCallback: () => void;
|
|
165
|
-
|
|
166
|
-
static slerpFlat(dst: number[], dstOffset: number, src0: number[], srcOffset: number, src1: number[], stcOffset1: number, t: number): void;
|
|
167
|
-
|
|
168
|
-
static multiplyQuaternionsFlat(dst: number[], dstOffset: number, src0: number[], srcOffset: number, src1: number[], stcOffset1: number): number[];
|
|
169
|
-
|
|
170
|
-
random(): this;
|
|
171
|
-
|
|
172
|
-
[Symbol.iterator](): Generator<number, void>;
|
|
173
|
-
}
|
package/three/src/math/Ray.d.ts
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { Box3 } from './Box3.js';
|
|
2
|
-
import { Matrix4 } from './Matrix4.js';
|
|
3
|
-
import { Plane } from './Plane.js';
|
|
4
|
-
import { Sphere } from './Sphere.js';
|
|
5
|
-
import { Vector3 } from './Vector3.js';
|
|
6
|
-
|
|
7
|
-
export class Ray {
|
|
8
|
-
constructor(origin?: Vector3, direction?: Vector3);
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* @default new THREE.Vector3()
|
|
12
|
-
*/
|
|
13
|
-
origin: Vector3;
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* @default new THREE.Vector3( 0, 0, - 1 )
|
|
17
|
-
*/
|
|
18
|
-
direction: Vector3;
|
|
19
|
-
|
|
20
|
-
set(origin: Vector3, direction: Vector3): Ray;
|
|
21
|
-
clone(): this;
|
|
22
|
-
copy(ray: Ray): this;
|
|
23
|
-
at(t: number, target: Vector3): Vector3;
|
|
24
|
-
lookAt(v: Vector3): Ray;
|
|
25
|
-
recast(t: number): Ray;
|
|
26
|
-
closestPointToPoint(point: Vector3, target: Vector3): Vector3;
|
|
27
|
-
distanceToPoint(point: Vector3): number;
|
|
28
|
-
distanceSqToPoint(point: Vector3): number;
|
|
29
|
-
distanceSqToSegment(v0: Vector3, v1: Vector3, optionalPointOnRay?: Vector3, optionalPointOnSegment?: Vector3): number;
|
|
30
|
-
intersectSphere(sphere: Sphere, target: Vector3): Vector3 | null;
|
|
31
|
-
intersectsSphere(sphere: Sphere): boolean;
|
|
32
|
-
distanceToPlane(plane: Plane): number;
|
|
33
|
-
intersectPlane(plane: Plane, target: Vector3): Vector3 | null;
|
|
34
|
-
intersectsPlane(plane: Plane): boolean;
|
|
35
|
-
intersectBox(box: Box3, target: Vector3): Vector3 | null;
|
|
36
|
-
intersectsBox(box: Box3): boolean;
|
|
37
|
-
intersectTriangle(a: Vector3, b: Vector3, c: Vector3, backfaceCulling: boolean, target: Vector3): Vector3 | null;
|
|
38
|
-
applyMatrix4(matrix4: Matrix4): Ray;
|
|
39
|
-
equals(ray: Ray): boolean;
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* @deprecated Use {@link Ray#intersectsBox .intersectsBox()} instead.
|
|
43
|
-
*/
|
|
44
|
-
isIntersectionBox(b: any): any;
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* @deprecated Use {@link Ray#intersectsPlane .intersectsPlane()} instead.
|
|
48
|
-
*/
|
|
49
|
-
isIntersectionPlane(p: any): any;
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* @deprecated Use {@link Ray#intersectsSphere .intersectsSphere()} instead.
|
|
53
|
-
*/
|
|
54
|
-
isIntersectionSphere(s: any): any;
|
|
55
|
-
}
|