rhodonite 0.4.2 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/VERSION-FILE +2 -2
- package/dist/esm/effekseer/EffekseerComponent.d.ts +52 -45
- package/dist/esm/effekseer/main.d.ts +6 -6
- package/dist/esm/foundation/cameras/AbstractCameraController.d.ts +14 -14
- package/dist/esm/foundation/cameras/ICameraController.d.ts +9 -9
- package/dist/esm/foundation/cameras/OrbitCameraController.d.ts +128 -123
- package/dist/esm/foundation/cameras/WalkThroughCameraController.d.ts +75 -75
- package/dist/esm/foundation/components/AnimationComponent.d.ts +81 -94
- package/dist/esm/foundation/components/BlendShapeComponent.d.ts +14 -14
- package/dist/esm/foundation/components/CameraComponent.d.ts +116 -116
- package/dist/esm/foundation/components/CameraControllerComponent.d.ts +16 -16
- package/dist/esm/foundation/components/LightComponent.d.ts +28 -28
- package/dist/esm/foundation/components/MeshComponent.d.ts +50 -50
- package/dist/esm/foundation/components/MeshRendererComponent.d.ts +57 -57
- package/dist/esm/foundation/components/PhysicsComponent.d.ts +12 -12
- package/dist/esm/foundation/components/SceneGraphComponent.d.ts +114 -81
- package/dist/esm/foundation/components/SkeletalComponent.d.ts +50 -50
- package/dist/esm/foundation/components/TransformComponent.d.ts +91 -91
- package/dist/esm/foundation/components/WellKnownComponentTIDs.d.ts +16 -16
- package/dist/esm/foundation/core/Component.d.ts +216 -216
- package/dist/esm/foundation/core/ComponentRepository.d.ts +59 -59
- package/dist/esm/foundation/core/Config.d.ts +20 -19
- package/dist/esm/foundation/core/Entity.d.ts +84 -84
- package/dist/esm/foundation/core/EntityRepository.d.ts +62 -62
- package/dist/esm/foundation/core/GlobalDataRepository.d.ts +32 -31
- package/dist/esm/foundation/core/MemoryManager.d.ts +29 -29
- package/dist/esm/foundation/core/RnObject.d.ts +96 -96
- package/dist/esm/foundation/definitions/AlphaMode.d.ts +15 -15
- package/dist/esm/foundation/definitions/AnimationAttribute.d.ts +13 -13
- package/dist/esm/foundation/definitions/AnimationInterpolation.d.ts +12 -12
- package/dist/esm/foundation/definitions/BasisCompressionType.d.ts +26 -26
- package/dist/esm/foundation/definitions/BoneDataType.d.ts +13 -13
- package/dist/esm/foundation/definitions/BufferUse.d.ts +13 -13
- package/dist/esm/foundation/definitions/CameraControllerType.d.ts +11 -11
- package/dist/esm/foundation/definitions/CameraType.d.ts +12 -12
- package/dist/esm/foundation/definitions/ComponentType.d.ts +32 -32
- package/dist/esm/foundation/definitions/CompositionType.d.ts +39 -38
- package/dist/esm/foundation/definitions/CompressionTextureType.d.ts +48 -48
- package/dist/esm/foundation/definitions/FileType.d.ts +17 -17
- package/dist/esm/foundation/definitions/GpuState.d.ts +10 -10
- package/dist/esm/foundation/definitions/HdriFormat.d.ts +10 -10
- package/dist/esm/foundation/definitions/LightType.d.ts +13 -13
- package/dist/esm/foundation/definitions/PixelFormat.d.ts +10 -10
- package/dist/esm/foundation/definitions/PrimitiveMode.d.ts +15 -15
- package/dist/esm/foundation/definitions/ProcessApproach.d.ts +19 -19
- package/dist/esm/foundation/definitions/ProcessStage.d.ts +18 -18
- package/dist/esm/foundation/definitions/RenderBufferTarget.d.ts +27 -27
- package/dist/esm/foundation/definitions/ShaderNode.d.ts +11 -11
- package/dist/esm/foundation/definitions/ShaderSemantics.d.ts +119 -119
- package/dist/esm/foundation/definitions/ShaderType.d.ts +13 -13
- package/dist/esm/foundation/definitions/ShaderVariableType.d.ts +11 -11
- package/dist/esm/foundation/definitions/ShaderVariableUpdateInterval.d.ts +12 -12
- package/dist/esm/foundation/definitions/ShadingModel.d.ts +12 -12
- package/dist/esm/foundation/definitions/ShadowMap.d.ts +11 -11
- package/dist/esm/foundation/definitions/TextureParameter.d.ts +37 -37
- package/dist/esm/foundation/definitions/VertexAttribute.d.ts +38 -38
- package/dist/esm/foundation/definitions/visibility.d.ts +12 -12
- package/dist/esm/foundation/enhanced_js_objects/Array.d.ts +15 -15
- package/dist/esm/foundation/exporter/Gltf2Exporter.d.ts +27 -22
- package/dist/esm/foundation/geometry/Frustum.d.ts +37 -37
- package/dist/esm/foundation/geometry/Mesh.d.ts +148 -124
- package/dist/esm/foundation/geometry/Plane.d.ts +30 -26
- package/dist/esm/foundation/geometry/Primitive.d.ts +78 -78
- package/dist/esm/foundation/geometry/Sphere.d.ts +12 -12
- package/dist/esm/foundation/gizmos/AABBGizmo.d.ts +29 -10
- package/dist/esm/foundation/gizmos/Gizmo.d.ts +39 -16
- package/dist/esm/foundation/gizmos/LocatorGizmo.d.ts +28 -0
- package/dist/esm/foundation/helpers/EntityHelper.d.ts +11 -11
- package/dist/esm/foundation/helpers/MaterialHelper.d.ts +173 -167
- package/dist/esm/foundation/helpers/MeshHelper.d.ts +4 -4
- package/dist/esm/foundation/helpers/RenderableHelper.d.ts +18 -18
- package/dist/esm/foundation/importer/AnimationAssigner.d.ts +16 -16
- package/dist/esm/foundation/importer/DrcPointCloudImporter.d.ts +69 -69
- package/dist/esm/foundation/importer/FormatDetector.d.ts +5 -5
- package/dist/esm/foundation/importer/Gltf1Importer.d.ts +45 -45
- package/dist/esm/foundation/importer/Gltf2Importer.d.ts +46 -46
- package/dist/esm/foundation/importer/GltfImporter.d.ts +57 -57
- package/dist/esm/foundation/importer/ILoaderExtension.d.ts +11 -11
- package/dist/esm/foundation/importer/ModelConverter.d.ts +78 -78
- package/dist/esm/foundation/importer/RhodoniteImportExtension.d.ts +9 -9
- package/dist/esm/foundation/importer/VRMImporter.d.ts +15 -15
- package/dist/esm/foundation/materials/core/AbstractMaterialNode.d.ts +124 -124
- package/dist/esm/foundation/materials/core/AbstractShaderNode.d.ts +33 -33
- package/dist/esm/foundation/materials/core/Material.d.ts +181 -149
- package/dist/esm/foundation/materials/core/ShaderGraphResolver.d.ts +16 -16
- package/dist/esm/foundation/materials/core/ShaderityUtility.d.ts +30 -32
- package/dist/esm/foundation/materials/nodes/AddShaderNode.d.ts +6 -6
- package/dist/esm/foundation/materials/nodes/AttributeNormalShaderNode.d.ts +4 -4
- package/dist/esm/foundation/materials/nodes/AttributePositionShaderNode.d.ts +4 -4
- package/dist/esm/foundation/materials/nodes/BlockBeginShaderNode.d.ts +9 -9
- package/dist/esm/foundation/materials/nodes/BlockEndShaderNode.d.ts +7 -7
- package/dist/esm/foundation/materials/nodes/ConstantVariableShaderNode.d.ts +7 -7
- package/dist/esm/foundation/materials/nodes/DotProductShaderNode.d.ts +6 -6
- package/dist/esm/foundation/materials/nodes/GreaterShaderNode.d.ts +6 -6
- package/dist/esm/foundation/materials/nodes/IfStatementShaderNode.d.ts +4 -4
- package/dist/esm/foundation/materials/nodes/MultiplyShaderNode.d.ts +6 -6
- package/dist/esm/foundation/materials/nodes/NormalMatrixShaderNode.d.ts +4 -4
- package/dist/esm/foundation/materials/nodes/NormalizeShaderNode.d.ts +6 -6
- package/dist/esm/foundation/materials/nodes/OutColorShaderNode.d.ts +4 -4
- package/dist/esm/foundation/materials/nodes/OutPositionShaderNode.d.ts +4 -4
- package/dist/esm/foundation/materials/nodes/ProjectionMatrixShaderNode.d.ts +4 -4
- package/dist/esm/foundation/materials/nodes/ScalarToVector4ShaderNode.d.ts +4 -4
- package/dist/esm/foundation/materials/nodes/TextureFetchMaterialNode.d.ts +6 -6
- package/dist/esm/foundation/materials/nodes/UniformDataShaderNode.d.ts +8 -8
- package/dist/esm/foundation/materials/nodes/VaryingInVariableShaderNode.d.ts +7 -7
- package/dist/esm/foundation/materials/nodes/VaryingOutVariableShaderNode.d.ts +7 -7
- package/dist/esm/foundation/materials/nodes/Vector3AndScalarToVector4ShaderNode.d.ts +4 -4
- package/dist/esm/foundation/materials/nodes/ViewMatrixShaderNode.d.ts +4 -4
- package/dist/esm/foundation/materials/nodes/WireframeMaterialNode.d.ts +4 -4
- package/dist/esm/foundation/materials/nodes/WorldMatrixShaderNode.d.ts +4 -4
- package/dist/esm/foundation/materials/singles/ClassicShadingSingleMaterialNode.d.ts +16 -16
- package/dist/esm/foundation/materials/singles/ColorGradingUsingLUTsSingleMaterialNode.d.ts +16 -16
- package/dist/esm/foundation/materials/singles/CustomSingleMaterialNode.d.ts +30 -31
- package/dist/esm/foundation/materials/singles/DepthEncodeSingleMaterialNode.d.ts +20 -20
- package/dist/esm/foundation/materials/singles/DetectHighLuminanceSingleMaterialNode.d.ts +16 -16
- package/dist/esm/foundation/materials/singles/EntityUIDOutputSingleMaterialNode.d.ts +11 -11
- package/dist/esm/foundation/materials/singles/EnvConstantSingleMaterialNode.d.ts +14 -14
- package/dist/esm/foundation/materials/singles/FXAA3QualitySingleMaterialNode.d.ts +11 -11
- package/dist/esm/foundation/materials/singles/FurnaceTestSingleMaterialNode.d.ts +17 -17
- package/dist/esm/foundation/materials/singles/GammaCorrectionSingleMaterialNode.d.ts +11 -11
- package/dist/esm/foundation/materials/singles/GaussianBlurForEncodedDepthSingleMaterialNode.d.ts +27 -27
- package/dist/esm/foundation/materials/singles/GaussianBlurSingleMaterialNode.d.ts +27 -27
- package/dist/esm/foundation/materials/singles/MToonSingleMaterialNode.d.ts +52 -52
- package/dist/esm/foundation/materials/singles/MatCapSingleMaterialNode.d.ts +14 -14
- package/dist/esm/foundation/materials/singles/PbrExtendedShadingSingleMaterialNode.d.ts +29 -29
- package/dist/esm/foundation/materials/singles/PbrShadingSingleMaterialNode.d.ts +36 -36
- package/dist/esm/foundation/materials/singles/ShaderitySingleMaterialNode.d.ts +17 -0
- package/dist/esm/foundation/materials/singles/ShadowMapDecodeClassicSingleMaterialNode.d.ts +41 -41
- package/dist/esm/foundation/materials/singles/SkinPbrShadingSingleMaterialNode.d.ts +26 -26
- package/dist/esm/foundation/materials/singles/SynthesizeHDRSingleMaterialNode.d.ts +39 -39
- package/dist/esm/foundation/materials/singles/VarianceShadowMapDecodeClassicSingleMaterialNode.d.ts +52 -52
- package/dist/esm/foundation/math/AABB.d.ts +34 -34
- package/dist/esm/foundation/math/AbstractMathNumber.d.ts +6 -6
- package/dist/esm/foundation/math/AbstractMatrix.d.ts +14 -14
- package/dist/esm/foundation/math/AbstractQuaternion.d.ts +25 -25
- package/dist/esm/foundation/math/AbstractVector.d.ts +21 -21
- package/dist/esm/foundation/math/ColorRgb.d.ts +26 -27
- package/dist/esm/foundation/math/ColorRgba.d.ts +25 -25
- package/dist/esm/foundation/math/IColor.d.ts +64 -64
- package/dist/esm/foundation/math/IMathNumber.d.ts +3 -3
- package/dist/esm/foundation/math/IMatrix.d.ts +226 -226
- package/dist/esm/foundation/math/IQuaternion.d.ts +64 -64
- package/dist/esm/foundation/math/IVector.d.ts +209 -209
- package/dist/esm/foundation/math/IdentityMatrix33.d.ts +40 -40
- package/dist/esm/foundation/math/IdentityMatrix44.d.ts +45 -45
- package/dist/esm/foundation/math/ImageUtil.d.ts +19 -19
- package/dist/esm/foundation/math/LogQuaternion.d.ts +12 -12
- package/dist/esm/foundation/math/MathClassUtil.d.ts +37 -37
- package/dist/esm/foundation/math/MathUtil.d.ts +55 -55
- package/dist/esm/foundation/math/Matrix22.d.ts +69 -69
- package/dist/esm/foundation/math/Matrix33.d.ts +86 -86
- package/dist/esm/foundation/math/Matrix44.d.ts +122 -122
- package/dist/esm/foundation/math/MutableColorRgb.d.ts +32 -33
- package/dist/esm/foundation/math/MutableColorRgba.d.ts +33 -33
- package/dist/esm/foundation/math/MutableMatrix22.d.ts +80 -80
- package/dist/esm/foundation/math/MutableMatrix33.d.ts +110 -110
- package/dist/esm/foundation/math/MutableMatrix44.d.ts +149 -149
- package/dist/esm/foundation/math/MutableQuaternion.d.ts +48 -48
- package/dist/esm/foundation/math/MutableScalar.d.ts +34 -34
- package/dist/esm/foundation/math/MutableVector2.d.ts +80 -75
- package/dist/esm/foundation/math/MutableVector3.d.ts +98 -94
- package/dist/esm/foundation/math/MutableVector4.d.ts +87 -85
- package/dist/esm/foundation/math/Quaternion.d.ts +53 -51
- package/dist/esm/foundation/math/Scalar.d.ts +40 -36
- package/dist/esm/foundation/math/Vector2.d.ts +140 -126
- package/dist/esm/foundation/math/Vector3.d.ts +166 -150
- package/dist/esm/foundation/math/Vector4.d.ts +146 -146
- package/dist/esm/foundation/math/VectorN.d.ts +5 -5
- package/dist/esm/foundation/math/raw/raw_extension.d.ts +59 -23
- package/dist/esm/foundation/memory/Accessor.d.ts +182 -182
- package/dist/esm/foundation/memory/Buffer.d.ts +37 -37
- package/dist/esm/foundation/memory/BufferView.d.ts +60 -60
- package/dist/esm/foundation/misc/Cache.d.ts +19 -0
- package/dist/esm/foundation/misc/DataUtil.d.ts +42 -38
- package/dist/esm/foundation/misc/EnumIO.d.ts +33 -33
- package/dist/esm/foundation/misc/Is.d.ts +26 -26
- package/dist/esm/foundation/misc/ManualCache.d.ts +30 -0
- package/dist/esm/foundation/misc/MiscUtil.d.ts +37 -30
- package/dist/esm/foundation/misc/Option.d.ts +72 -72
- package/dist/esm/foundation/misc/Result.d.ts +40 -40
- package/dist/esm/foundation/misc/RnPromise.d.ts +27 -27
- package/dist/esm/foundation/misc/Time.d.ts +16 -16
- package/dist/esm/foundation/physics/PhysicsStrategy.d.ts +2 -2
- package/dist/esm/foundation/physics/SphereCollider.d.ts +5 -5
- package/dist/esm/foundation/physics/VRMColliderGroup.d.ts +6 -6
- package/dist/esm/foundation/physics/VRMSpringBoneGroup.d.ts +14 -14
- package/dist/esm/foundation/physics/VRMSpringBonePhysicsStrategy.d.ts +39 -39
- package/dist/esm/foundation/renderer/CGAPIResourceRepository.d.ts +5 -5
- package/dist/esm/foundation/renderer/Expression.d.ts +21 -21
- package/dist/esm/foundation/renderer/FrameBuffer.d.ts +32 -32
- package/dist/esm/foundation/renderer/RenderPass.d.ts +113 -115
- package/dist/esm/foundation/system/EventPubSub.d.ts +19 -19
- package/dist/esm/foundation/system/ModuleManager.d.ts +10 -10
- package/dist/esm/foundation/system/System.d.ts +23 -23
- package/dist/esm/foundation/system/SystemState.d.ts +4 -4
- package/dist/esm/foundation/textures/AbstractTexture.d.ts +60 -60
- package/dist/esm/foundation/textures/CubeTexture.d.ts +33 -33
- package/dist/esm/foundation/textures/IRenderable.d.ts +10 -10
- package/dist/esm/foundation/textures/RenderBuffer.d.ts +23 -23
- package/dist/esm/foundation/textures/RenderTargetTexture.d.ts +39 -39
- package/dist/esm/foundation/textures/Texture.d.ts +90 -90
- package/dist/esm/foundation/textures/TextureDataFloat.d.ts +20 -18
- package/dist/esm/foundation/textures/VideoTexture.d.ts +63 -63
- package/dist/esm/index.d.ts +927 -917
- package/dist/esm/index.js +44596 -41597
- package/dist/esm/pbr/main.d.ts +5 -5
- package/dist/esm/sparkgear/SparkGearComponent.d.ts +54 -54
- package/dist/esm/sparkgear/main.d.ts +6 -6
- package/dist/esm/types/BasisTexture.d.ts +23 -23
- package/dist/esm/types/CommonTypes.d.ts +33 -29
- package/dist/esm/types/KTX2Texture.d.ts +67 -67
- package/dist/esm/types/RnM2.d.ts +329 -329
- package/dist/esm/types/TypeConverter.d.ts +1 -1
- package/dist/esm/types/TypeGenerators.d.ts +4 -4
- package/dist/esm/types/VRM.d.ts +160 -160
- package/dist/esm/types/glTF.d.ts +387 -385
- package/dist/esm/types/glTF1.d.ts +88 -88
- package/dist/esm/types/glTF2.d.ts +391 -338
- package/dist/esm/webgl/WebGLContextWrapper.d.ts +99 -99
- package/dist/esm/webgl/WebGLExtendedTypes.d.ts +14 -9
- package/dist/esm/webgl/WebGLExtension.d.ts +24 -24
- package/dist/esm/webgl/WebGLResourceRepository.d.ts +351 -221
- package/dist/esm/webgl/WebGLStrategy.d.ts +27 -22
- package/dist/esm/webgl/WebGLStrategyCommonMethod.d.ts +54 -30
- package/dist/esm/webgl/WebGLStrategyFastest.d.ts +54 -51
- package/dist/esm/webgl/WebGLStrategyUniform.d.ts +44 -40
- package/dist/esm/webgl/getRenderingStrategy.d.ts +4 -4
- package/dist/esm/webgl/main.d.ts +17 -17
- package/dist/esm/webgl/shaders/GLSLShader.d.ts +48 -48
- package/dist/esm/webgl/shaders/nodes/BlockBeginShader.d.ts +16 -16
- package/dist/esm/webgl/shaders/nodes/BlockEndShader.d.ts +16 -16
- package/dist/esm/webgl/shaders/nodes/ClassicShadingShader.d.ts +17 -17
- package/dist/esm/webgl/shaders/nodes/ConstantVariableShader.d.ts +18 -18
- package/dist/esm/webgl/shaders/nodes/EndShader.d.ts +17 -17
- package/dist/esm/webgl/shaders/nodes/IfStatementShader.d.ts +12 -12
- package/dist/esm/webgl/shaders/nodes/TextureFetchShader.d.ts +18 -18
- package/dist/esm/webgl/shaders/nodes/UniformDataShader.d.ts +20 -20
- package/dist/esm/webgl/shaders/nodes/VaryingVariableShader.d.ts +18 -18
- package/dist/esm/webgl/textureLoader/KTX2TextureLoader.d.ts +21 -21
- package/dist/esm/xr/WebVRSystem.d.ts +55 -55
- package/dist/esm/xr/WebXRInput.d.ts +18 -18
- package/dist/esm/xr/WebXRSystem.d.ts +136 -136
- package/dist/esm/xr/main.d.ts +8 -8
- package/package.json +5 -7
- package/dist/VERSION-FILE +0 -2
- package/dist/esm/foundation/components/MeshComponent.test.d.ts +0 -1
- package/dist/esm/foundation/components/SceneGraphComponent.test.d.ts +0 -1
- package/dist/esm/foundation/components/TransformComponent.test.d.ts +0 -1
- package/dist/esm/foundation/core/Entity.test.d.ts +0 -1
- package/dist/esm/foundation/core/EntityRepository.test.d.ts +0 -1
- package/dist/esm/foundation/core/RnObject.test.d.ts +0 -1
- package/dist/esm/foundation/definitions/ShaderVariableTyoe.d.ts +0 -11
- package/dist/esm/foundation/enhanced_js_objects/Array.test.d.ts +0 -5
- package/dist/esm/foundation/geometry/Mesh.test.d.ts +0 -1
- package/dist/esm/foundation/importer/VRizeGltfLoaderExtension.d.ts +0 -21
- package/dist/esm/foundation/materials/core/Material.test.d.ts +0 -1
- package/dist/esm/foundation/materials/core/ShaderityUtility.test.d.ts +0 -1
- package/dist/esm/foundation/materials/nodes/AddShaderNode.test.d.ts +0 -1
- package/dist/esm/foundation/materials/nodes/ConstantVariableShaderNode.test.d.ts +0 -1
- package/dist/esm/foundation/materials/nodes/ScalarToVector4ShaderNode.test.d.ts +0 -1
- package/dist/esm/foundation/materials/nodes/VaryingVariableShaderNode.test.d.ts +0 -1
- package/dist/esm/foundation/materials/singles/VRizeClassicShadingSingleMaterialNode.d.ts +0 -24
- package/dist/esm/foundation/materials/singles/VRizePbrShadingSingleMaterialNode.d.ts +0 -28
- package/dist/esm/foundation/math/AABB.test.d.ts +0 -1
- package/dist/esm/foundation/math/IdentityMatrix33.test.d.ts +0 -1
- package/dist/esm/foundation/math/IdentityMatrix44.test.d.ts +0 -1
- package/dist/esm/foundation/math/Matrix44.test.d.ts +0 -1
- package/dist/esm/foundation/math/MutableMatrix44..test.d.ts +0 -1
- package/dist/esm/foundation/math/MutableVector4.test.d.ts +0 -1
- package/dist/esm/foundation/math/Vector4.test.d.ts +0 -1
- package/dist/esm/foundation/memory/Accessor.test.d.ts +0 -1
- package/dist/esm/foundation/memory/Buffer.test.d.ts +0 -1
- package/dist/esm/foundation/memory/BufferView.test.d.ts +0 -1
- package/dist/esm/foundation/misc/Is.test.d.ts +0 -1
- package/dist/esm/foundation/misc/Option.test.d.ts +0 -1
- package/dist/esm/foundation/misc/Result.test.d.ts +0 -1
- package/dist/esm/foundation/misc/RnPromise.test.d.ts +0 -1
- package/dist/esm/foundation/renderer/RenderPass.test.d.ts +0 -1
- package/dist/esm/foundation/system/EventPubSub.test.d.ts +0 -1
- package/dist/esm/rhodonite-xr.d.ts +0 -8
- package/dist/esm/types/Option.d.ts +0 -68
- package/dist/esm/types/Option.test.d.ts +0 -1
- package/dist/esm/types/Result.d.ts +0 -32
- package/dist/esm/webgl/WebGLResourceRepository.test.d.ts +0 -1
|
@@ -1,150 +1,166 @@
|
|
|
1
|
-
import { IVector2, IVector3, IVector4, IVector, IMutableVector3 } from './IVector';
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
export declare class Vector3_<T extends
|
|
6
|
-
constructor(
|
|
7
|
-
type: T;
|
|
8
|
-
});
|
|
9
|
-
get x(): number;
|
|
10
|
-
get y(): number;
|
|
11
|
-
get z(): number;
|
|
12
|
-
get w(): number;
|
|
13
|
-
get glslStrAsFloat(): string;
|
|
14
|
-
get glslStrAsInt(): string;
|
|
15
|
-
static get compositionType(): import("../definitions/CompositionType").CompositionTypeEnum;
|
|
16
|
-
/**
|
|
17
|
-
* to square length(static version)
|
|
18
|
-
*/
|
|
19
|
-
static lengthSquared(vec: IVector3): number;
|
|
20
|
-
static lengthBtw(l_vec: IVector3, r_vec: IVector3): number;
|
|
21
|
-
static angleOfVectors(l_vec: IVector3, r_vec: IVector3): number;
|
|
22
|
-
static _zero(type:
|
|
23
|
-
static _one(type:
|
|
24
|
-
static _dummy(type:
|
|
25
|
-
/**
|
|
26
|
-
* normalize(static version)
|
|
27
|
-
*/
|
|
28
|
-
static _normalize(vec: IVector3, type:
|
|
29
|
-
/**
|
|
30
|
-
* add value(static version)
|
|
31
|
-
*/
|
|
32
|
-
static _add(l_vec: IVector3, r_vec: IVector3, type:
|
|
33
|
-
/**
|
|
34
|
-
* add value(static version)
|
|
35
|
-
*/
|
|
36
|
-
static addTo(l_vec: IVector3, r_vec: IVector3, out: IMutableVector3): IMutableVector3;
|
|
37
|
-
/**
|
|
38
|
-
* subtract(subtract)
|
|
39
|
-
*/
|
|
40
|
-
static _subtract(l_vec: IVector3, r_vec: IVector3, type:
|
|
41
|
-
/**
|
|
42
|
-
* subtract(subtract)
|
|
43
|
-
*/
|
|
44
|
-
static subtractTo(l_vec: IVector3, r_vec: IVector3, out: IMutableVector3): IMutableVector3;
|
|
45
|
-
/**
|
|
46
|
-
* multiply(static version)
|
|
47
|
-
*/
|
|
48
|
-
static _multiply(vec: IVector3, value: number, type:
|
|
49
|
-
/**
|
|
50
|
-
* multiplyTo(static version)
|
|
51
|
-
*/
|
|
52
|
-
static multiplyTo(vec: IVector3, value: number, out: IMutableVector3): IMutableVector3;
|
|
53
|
-
/**
|
|
54
|
-
* multiply vector(static version)
|
|
55
|
-
*/
|
|
56
|
-
static _multiplyVector(l_vec: IVector3, r_vec: IVector3, type:
|
|
57
|
-
/**
|
|
58
|
-
* multiply vector(static version)
|
|
59
|
-
*/
|
|
60
|
-
static multiplyVectorTo(l_vec: IVector3, r_vec: IVector3, out: IMutableVector3): IMutableVector3;
|
|
61
|
-
/**
|
|
62
|
-
* divide(static version)
|
|
63
|
-
*/
|
|
64
|
-
static _divide(vec: IVector3, value: number, type:
|
|
65
|
-
/**
|
|
66
|
-
* divide by value(static version)
|
|
67
|
-
*/
|
|
68
|
-
static divideTo(vec: IVector3, value: number, out: IMutableVector3): IMutableVector3;
|
|
69
|
-
/**
|
|
70
|
-
* divide vector(static version)
|
|
71
|
-
*/
|
|
72
|
-
static _divideVector(l_vec: IVector3, r_vec: IVector3, type:
|
|
73
|
-
/**
|
|
74
|
-
* divide by vector(static version)
|
|
75
|
-
*/
|
|
76
|
-
static divideVectorTo(l_vec: IVector3, r_vec: IVector3, out: IMutableVector3): IMutableVector3;
|
|
77
|
-
/**
|
|
78
|
-
* dot product(static version)
|
|
79
|
-
*/
|
|
80
|
-
static dot(l_vec: IVector3, r_vec: IVector3): number;
|
|
81
|
-
/**
|
|
82
|
-
* cross product(static version)
|
|
83
|
-
*/
|
|
84
|
-
static _cross(l_vec: IVector3, r_vec: IVector3, type:
|
|
85
|
-
/**
|
|
86
|
-
* cross product(static version)
|
|
87
|
-
*/
|
|
88
|
-
static crossTo(l_vec: IVector3, r_vec: IVector3, out: IMutableVector3): IMutableVector3;
|
|
89
|
-
/**
|
|
90
|
-
* quaternion * vector3
|
|
91
|
-
*/
|
|
92
|
-
static _multiplyQuaternion(quat: IQuaternion, vec: IVector3, type:
|
|
93
|
-
/**
|
|
94
|
-
* quaternion * vector3
|
|
95
|
-
*/
|
|
96
|
-
static multiplyQuaternionTo(quat: IQuaternion, vec: IVector3, out: IMutableVector3): IMutableVector3;
|
|
97
|
-
/**
|
|
98
|
-
* change to string
|
|
99
|
-
*/
|
|
100
|
-
toString(): string;
|
|
101
|
-
toStringApproximately(): string;
|
|
102
|
-
flattenAsArray(): number[];
|
|
103
|
-
isDummy(): boolean;
|
|
104
|
-
isEqual(vec: IVector3, delta?: number): boolean;
|
|
105
|
-
isStrictEqual(vec: IVector3): boolean;
|
|
106
|
-
at(i: number): number;
|
|
107
|
-
length(): number;
|
|
108
|
-
lengthSquared(): number;
|
|
109
|
-
lengthTo(vec: IVector3): number;
|
|
110
|
-
/**
|
|
111
|
-
* dot product
|
|
112
|
-
*/
|
|
113
|
-
dot(vec: IVector3): number;
|
|
114
|
-
get className(): string;
|
|
115
|
-
clone(): any;
|
|
116
|
-
static
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
static
|
|
121
|
-
static
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
static
|
|
126
|
-
static
|
|
127
|
-
static
|
|
128
|
-
static
|
|
129
|
-
static
|
|
130
|
-
static
|
|
131
|
-
static
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
static
|
|
137
|
-
static
|
|
138
|
-
static
|
|
139
|
-
static
|
|
140
|
-
static
|
|
141
|
-
static
|
|
142
|
-
static
|
|
143
|
-
static
|
|
144
|
-
static
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
1
|
+
import { IVector2, IVector3, IVector4, IVector, IMutableVector3 } from './IVector';
|
|
2
|
+
import { IQuaternion } from './IQuaternion';
|
|
3
|
+
import AbstractVector from './AbstractVector';
|
|
4
|
+
import { Array3, FloatTypedArrayConstructor, TypedArray } from '../../types/CommonTypes';
|
|
5
|
+
export declare class Vector3_<T extends FloatTypedArrayConstructor> extends AbstractVector implements IVector, IVector3 {
|
|
6
|
+
constructor(v: TypedArray, { type }: {
|
|
7
|
+
type: T;
|
|
8
|
+
});
|
|
9
|
+
get x(): number;
|
|
10
|
+
get y(): number;
|
|
11
|
+
get z(): number;
|
|
12
|
+
get w(): number;
|
|
13
|
+
get glslStrAsFloat(): string;
|
|
14
|
+
get glslStrAsInt(): string;
|
|
15
|
+
static get compositionType(): import("../definitions/CompositionType").CompositionTypeEnum;
|
|
16
|
+
/**
|
|
17
|
+
* to square length(static version)
|
|
18
|
+
*/
|
|
19
|
+
static lengthSquared(vec: IVector3): number;
|
|
20
|
+
static lengthBtw(l_vec: IVector3, r_vec: IVector3): number;
|
|
21
|
+
static angleOfVectors(l_vec: IVector3, r_vec: IVector3): number;
|
|
22
|
+
static _zero(type: FloatTypedArrayConstructor): Vector3_<FloatTypedArrayConstructor>;
|
|
23
|
+
static _one(type: FloatTypedArrayConstructor): Vector3_<FloatTypedArrayConstructor>;
|
|
24
|
+
static _dummy(type: FloatTypedArrayConstructor): Vector3_<FloatTypedArrayConstructor>;
|
|
25
|
+
/**
|
|
26
|
+
* normalize(static version)
|
|
27
|
+
*/
|
|
28
|
+
static _normalize(vec: IVector3, type: FloatTypedArrayConstructor): Vector3_<FloatTypedArrayConstructor>;
|
|
29
|
+
/**
|
|
30
|
+
* add value(static version)
|
|
31
|
+
*/
|
|
32
|
+
static _add(l_vec: IVector3, r_vec: IVector3, type: FloatTypedArrayConstructor): Vector3_<FloatTypedArrayConstructor>;
|
|
33
|
+
/**
|
|
34
|
+
* add value(static version)
|
|
35
|
+
*/
|
|
36
|
+
static addTo(l_vec: IVector3, r_vec: IVector3, out: IMutableVector3): IMutableVector3;
|
|
37
|
+
/**
|
|
38
|
+
* subtract(subtract)
|
|
39
|
+
*/
|
|
40
|
+
static _subtract(l_vec: IVector3, r_vec: IVector3, type: FloatTypedArrayConstructor): Vector3_<FloatTypedArrayConstructor>;
|
|
41
|
+
/**
|
|
42
|
+
* subtract(subtract)
|
|
43
|
+
*/
|
|
44
|
+
static subtractTo(l_vec: IVector3, r_vec: IVector3, out: IMutableVector3): IMutableVector3;
|
|
45
|
+
/**
|
|
46
|
+
* multiply(static version)
|
|
47
|
+
*/
|
|
48
|
+
static _multiply(vec: IVector3, value: number, type: FloatTypedArrayConstructor): Vector3_<FloatTypedArrayConstructor>;
|
|
49
|
+
/**
|
|
50
|
+
* multiplyTo(static version)
|
|
51
|
+
*/
|
|
52
|
+
static multiplyTo(vec: IVector3, value: number, out: IMutableVector3): IMutableVector3;
|
|
53
|
+
/**
|
|
54
|
+
* multiply vector(static version)
|
|
55
|
+
*/
|
|
56
|
+
static _multiplyVector(l_vec: IVector3, r_vec: IVector3, type: FloatTypedArrayConstructor): Vector3_<FloatTypedArrayConstructor>;
|
|
57
|
+
/**
|
|
58
|
+
* multiply vector(static version)
|
|
59
|
+
*/
|
|
60
|
+
static multiplyVectorTo(l_vec: IVector3, r_vec: IVector3, out: IMutableVector3): IMutableVector3;
|
|
61
|
+
/**
|
|
62
|
+
* divide(static version)
|
|
63
|
+
*/
|
|
64
|
+
static _divide(vec: IVector3, value: number, type: FloatTypedArrayConstructor): Vector3_<FloatTypedArrayConstructor>;
|
|
65
|
+
/**
|
|
66
|
+
* divide by value(static version)
|
|
67
|
+
*/
|
|
68
|
+
static divideTo(vec: IVector3, value: number, out: IMutableVector3): IMutableVector3;
|
|
69
|
+
/**
|
|
70
|
+
* divide vector(static version)
|
|
71
|
+
*/
|
|
72
|
+
static _divideVector(l_vec: IVector3, r_vec: IVector3, type: FloatTypedArrayConstructor): Vector3_<FloatTypedArrayConstructor>;
|
|
73
|
+
/**
|
|
74
|
+
* divide by vector(static version)
|
|
75
|
+
*/
|
|
76
|
+
static divideVectorTo(l_vec: IVector3, r_vec: IVector3, out: IMutableVector3): IMutableVector3;
|
|
77
|
+
/**
|
|
78
|
+
* dot product(static version)
|
|
79
|
+
*/
|
|
80
|
+
static dot(l_vec: IVector3, r_vec: IVector3): number;
|
|
81
|
+
/**
|
|
82
|
+
* cross product(static version)
|
|
83
|
+
*/
|
|
84
|
+
static _cross(l_vec: IVector3, r_vec: IVector3, type: FloatTypedArrayConstructor): Vector3_<FloatTypedArrayConstructor>;
|
|
85
|
+
/**
|
|
86
|
+
* cross product(static version)
|
|
87
|
+
*/
|
|
88
|
+
static crossTo(l_vec: IVector3, r_vec: IVector3, out: IMutableVector3): IMutableVector3;
|
|
89
|
+
/**
|
|
90
|
+
* quaternion * vector3
|
|
91
|
+
*/
|
|
92
|
+
static _multiplyQuaternion(quat: IQuaternion, vec: IVector3, type: FloatTypedArrayConstructor): Vector3_<FloatTypedArrayConstructor>;
|
|
93
|
+
/**
|
|
94
|
+
* quaternion * vector3
|
|
95
|
+
*/
|
|
96
|
+
static multiplyQuaternionTo(quat: IQuaternion, vec: IVector3, out: IMutableVector3): IMutableVector3;
|
|
97
|
+
/**
|
|
98
|
+
* change to string
|
|
99
|
+
*/
|
|
100
|
+
toString(): string;
|
|
101
|
+
toStringApproximately(): string;
|
|
102
|
+
flattenAsArray(): number[];
|
|
103
|
+
isDummy(): boolean;
|
|
104
|
+
isEqual(vec: IVector3, delta?: number): boolean;
|
|
105
|
+
isStrictEqual(vec: IVector3): boolean;
|
|
106
|
+
at(i: number): number;
|
|
107
|
+
length(): number;
|
|
108
|
+
lengthSquared(): number;
|
|
109
|
+
lengthTo(vec: IVector3): number;
|
|
110
|
+
/**
|
|
111
|
+
* dot product
|
|
112
|
+
*/
|
|
113
|
+
dot(vec: IVector3): number;
|
|
114
|
+
get className(): string;
|
|
115
|
+
clone(): any;
|
|
116
|
+
static _lerp(lhs: IVector3, rhs: IVector3, ratio: number, type: FloatTypedArrayConstructor): Vector3_<FloatTypedArrayConstructor>;
|
|
117
|
+
static _fromCopyArray3(array: Array3<number>, type: FloatTypedArrayConstructor): Vector3_<FloatTypedArrayConstructor>;
|
|
118
|
+
static _fromCopyArray(array: Array<number>, type: FloatTypedArrayConstructor): Vector3_<FloatTypedArrayConstructor>;
|
|
119
|
+
static _fromCopyVector3(vec3: IVector3, type: FloatTypedArrayConstructor): Vector3_<FloatTypedArrayConstructor>;
|
|
120
|
+
static _fromCopyVector4(vec4: IVector4, type: FloatTypedArrayConstructor): Vector3_<FloatTypedArrayConstructor>;
|
|
121
|
+
static _fromVector2(vec2: IVector2, type: FloatTypedArrayConstructor): Vector3_<FloatTypedArrayConstructor>;
|
|
122
|
+
}
|
|
123
|
+
export default class Vector3 extends Vector3_<Float32ArrayConstructor> {
|
|
124
|
+
constructor(v: TypedArray);
|
|
125
|
+
static fromCopyArray3(array: Array3<number>): Vector3;
|
|
126
|
+
static fromCopyArray(array: Array<number>): Vector3;
|
|
127
|
+
static fromCopyVector3(vec3: IVector3): Vector3;
|
|
128
|
+
static fromCopyVector4(vec4: IVector4): Vector3;
|
|
129
|
+
static fromArrayBuffer(arrayBuffer: ArrayBuffer): Vector3;
|
|
130
|
+
static fromFloat32Array(float32Array: Float32Array): Vector3;
|
|
131
|
+
static fromCopyFloat32Array(float32Array: Float32Array): Vector3;
|
|
132
|
+
static zero(): Vector3;
|
|
133
|
+
static one(): Vector3;
|
|
134
|
+
static dummy(): Vector3;
|
|
135
|
+
static normalize(vec: IVector3): Vector3;
|
|
136
|
+
static add(l_vec: IVector3, r_vec: IVector3): Vector3;
|
|
137
|
+
static subtract(l_vec: IVector3, r_vec: IVector3): Vector3;
|
|
138
|
+
static multiply(vec: IVector3, value: number): Vector3;
|
|
139
|
+
static multiplyVector(l_vec: IVector3, r_vec: IVector3): Vector3;
|
|
140
|
+
static divide(vec: IVector3, value: number): Vector3;
|
|
141
|
+
static divideVector(l_vec: IVector3, r_vec: IVector3): Vector3;
|
|
142
|
+
static cross(l_vec: IVector3, r_vec: IVector3): Vector3;
|
|
143
|
+
static multiplyQuaternion(quat: IQuaternion, vec: IVector3): Vector3;
|
|
144
|
+
static lerp(lhs: IVector3, rhs: IVector3, ratio: number): Vector3;
|
|
145
|
+
}
|
|
146
|
+
export declare class Vector3d extends Vector3_<Float64ArrayConstructor> {
|
|
147
|
+
private constructor();
|
|
148
|
+
static fromCopyArray3(array: Array3<number>): Vector3d;
|
|
149
|
+
static fromCopyArray(array: Array<number>): Vector3d;
|
|
150
|
+
static fromArrayBuffer(arrayBuffer: ArrayBuffer): Vector3d;
|
|
151
|
+
static fromFloat64Array(float64Array: Float64Array): Vector3d;
|
|
152
|
+
static zero(): Vector3d;
|
|
153
|
+
static one(): Vector3d;
|
|
154
|
+
static dummy(): Vector3d;
|
|
155
|
+
static normalize(vec: IVector3): Vector3d;
|
|
156
|
+
static add(l_vec: IVector3, r_vec: IVector3): Vector3d;
|
|
157
|
+
static subtract(l_vec: IVector3, r_vec: IVector3): Vector3d;
|
|
158
|
+
static multiply(vec: IVector3, value: number): Vector3d;
|
|
159
|
+
static multiplyVector(l_vec: IVector3, r_vec: IVector3): Vector3d;
|
|
160
|
+
static divide(vec: IVector3, value: number): Vector3d;
|
|
161
|
+
static divideVector(l_vec: IVector3, r_vec: IVector3): Vector3d;
|
|
162
|
+
static cross(l_vec: IVector3, r_vec: IVector3): Vector3d;
|
|
163
|
+
static multiplyQuaternion(quat: IQuaternion, vec: IVector3): Vector3d;
|
|
164
|
+
static lerp(lhs: IVector3, rhs: IVector3, ratio: number): Vector3d;
|
|
165
|
+
}
|
|
166
|
+
export declare type Vector3f = Vector3;
|
|
@@ -1,146 +1,146 @@
|
|
|
1
|
-
import { IVector2, IVector3, IVector4, IMutableVector4 } from './IVector';
|
|
2
|
-
import { Array4, FloatTypedArray, FloatTypedArrayConstructor } from '../../types/CommonTypes';
|
|
3
|
-
import AbstractVector from './AbstractVector';
|
|
4
|
-
export declare class Vector4_<T extends FloatTypedArrayConstructor> extends AbstractVector implements IVector4 {
|
|
5
|
-
protected constructor(v: FloatTypedArray, { type }: {
|
|
6
|
-
type: T;
|
|
7
|
-
});
|
|
8
|
-
get x(): number;
|
|
9
|
-
get y(): number;
|
|
10
|
-
get z(): number;
|
|
11
|
-
get w(): number;
|
|
12
|
-
get glslStrAsFloat(): string;
|
|
13
|
-
get glslStrAsInt(): string;
|
|
14
|
-
static _fromCopyArray4(array: Array4<number>, type: FloatTypedArrayConstructor): Vector4_<FloatTypedArrayConstructor>;
|
|
15
|
-
static _fromCopyArray(array: Array<number>, type: FloatTypedArrayConstructor): Vector4_<FloatTypedArrayConstructor>;
|
|
16
|
-
static _fromCopyVector4(vec4: IVector4, type: FloatTypedArrayConstructor): Vector4_<FloatTypedArrayConstructor>;
|
|
17
|
-
static _fromCopyVector3(vec3: IVector3, type: FloatTypedArrayConstructor): Vector4_<FloatTypedArrayConstructor>;
|
|
18
|
-
static _fromVector2(vec2: IVector2, type: FloatTypedArrayConstructor): Vector4_<FloatTypedArrayConstructor>;
|
|
19
|
-
static get compositionType(): import("../definitions/CompositionType").CompositionTypeEnum;
|
|
20
|
-
/**
|
|
21
|
-
* to square length(static version)
|
|
22
|
-
*/
|
|
23
|
-
static lengthSquared(vec: IVector4): number;
|
|
24
|
-
static lengthBtw(l_vec: IVector4, r_vec: IVector4): number;
|
|
25
|
-
/**
|
|
26
|
-
* Zero Vector
|
|
27
|
-
*/
|
|
28
|
-
static _zero(type: FloatTypedArrayConstructor): Vector4_<FloatTypedArrayConstructor>;
|
|
29
|
-
static _one(type: FloatTypedArrayConstructor): Vector4_<FloatTypedArrayConstructor>;
|
|
30
|
-
static _dummy(type: FloatTypedArrayConstructor): Vector4_<FloatTypedArrayConstructor>;
|
|
31
|
-
/**
|
|
32
|
-
* normalize(static version)
|
|
33
|
-
*/
|
|
34
|
-
static _normalize(vec: IVector4, type: FloatTypedArrayConstructor): Vector4_<FloatTypedArrayConstructor>;
|
|
35
|
-
/**
|
|
36
|
-
* add value(static version)
|
|
37
|
-
*/
|
|
38
|
-
static _add(l_vec: IVector4, r_vec: IVector4, type: FloatTypedArrayConstructor): Vector4_<FloatTypedArrayConstructor>;
|
|
39
|
-
/**
|
|
40
|
-
* add value(static version)
|
|
41
|
-
*/
|
|
42
|
-
static addTo(l_vec: IVector4, r_vec: IVector4, out: IMutableVector4): IMutableVector4;
|
|
43
|
-
/**
|
|
44
|
-
* subtract(static version)
|
|
45
|
-
*/
|
|
46
|
-
static _subtract(l_vec: IVector4, r_vec: IVector4, type: FloatTypedArrayConstructor): Vector4_<FloatTypedArrayConstructor>;
|
|
47
|
-
/**
|
|
48
|
-
* subtract(static version)
|
|
49
|
-
*/
|
|
50
|
-
static subtractTo(l_vec: IVector4, r_vec: IVector4, out: IMutableVector4): IMutableVector4;
|
|
51
|
-
/**
|
|
52
|
-
* multiply(static version)
|
|
53
|
-
*/
|
|
54
|
-
static _multiply(vec: IVector4, value: number, type: FloatTypedArrayConstructor): Vector4_<FloatTypedArrayConstructor>;
|
|
55
|
-
/**
|
|
56
|
-
* multiplyTo(static version)
|
|
57
|
-
*/
|
|
58
|
-
static multiplyTo(vec: IVector4, value: number, out: IMutableVector4): IMutableVector4;
|
|
59
|
-
/**
|
|
60
|
-
* multiply vector(static version)
|
|
61
|
-
*/
|
|
62
|
-
static _multiplyVector(l_vec: IVector4, r_vec: IVector4, type: FloatTypedArrayConstructor): Vector4_<FloatTypedArrayConstructor>;
|
|
63
|
-
/**
|
|
64
|
-
* multiply vector(static version)
|
|
65
|
-
*/
|
|
66
|
-
static multiplyVectorTo(l_vec: IVector4, r_vec: IVector4, out: IMutableVector4): IMutableVector4;
|
|
67
|
-
/**
|
|
68
|
-
* divide(static version)
|
|
69
|
-
*/
|
|
70
|
-
static _divide(vec: IVector4, value: number, type: FloatTypedArrayConstructor): Vector4_<FloatTypedArrayConstructor>;
|
|
71
|
-
/**
|
|
72
|
-
* divide by value(static version)
|
|
73
|
-
*/
|
|
74
|
-
static divideTo(vec: IVector4, value: number, out: IMutableVector4): IMutableVector4;
|
|
75
|
-
/**
|
|
76
|
-
* divide vector(static version)
|
|
77
|
-
*/
|
|
78
|
-
static _divideVector(l_vec: IVector4, r_vec: IVector4, type: FloatTypedArrayConstructor): Vector4_<FloatTypedArrayConstructor>;
|
|
79
|
-
/**
|
|
80
|
-
* divide by vector(static version)
|
|
81
|
-
*/
|
|
82
|
-
static divideVectorTo(l_vec: IVector4, r_vec: IVector4, out: IMutableVector4): IMutableVector4;
|
|
83
|
-
/**
|
|
84
|
-
* dot product(static version)
|
|
85
|
-
*/
|
|
86
|
-
static dot(l_vec: IVector4, r_vec: IVector4): number;
|
|
87
|
-
toString(): string;
|
|
88
|
-
toStringApproximately(): string;
|
|
89
|
-
flattenAsArray(): number[];
|
|
90
|
-
isDummy(): boolean;
|
|
91
|
-
isEqual(vec: IVector4, delta?: number): boolean;
|
|
92
|
-
isStrictEqual(vec: IVector4): boolean;
|
|
93
|
-
at(i: number): number;
|
|
94
|
-
length(): number;
|
|
95
|
-
lengthSquared(): number;
|
|
96
|
-
lengthTo(vec: IVector4): number;
|
|
97
|
-
/**
|
|
98
|
-
* dot product
|
|
99
|
-
*/
|
|
100
|
-
dot(vec: IVector4): number;
|
|
101
|
-
get className(): string;
|
|
102
|
-
clone(): any;
|
|
103
|
-
}
|
|
104
|
-
export default class Vector4 extends Vector4_<Float32ArrayConstructor> {
|
|
105
|
-
constructor(x: Float32Array);
|
|
106
|
-
static fromCopyArray(array: Array4<number>): Vector4;
|
|
107
|
-
static fromCopyArray4(array: Array4<number>): Vector4;
|
|
108
|
-
static fromCopyVector3(vec3: IVector3): Vector4;
|
|
109
|
-
static fromCopyVector4(vec4: IVector4): Vector4;
|
|
110
|
-
static fromArrayBuffer(arrayBuffer: ArrayBuffer): Vector4;
|
|
111
|
-
static fromFloat32Array(float32Array: Float32Array): Vector4;
|
|
112
|
-
static fromCopyFloat32Array(float32Array: Float32Array): Vector4;
|
|
113
|
-
static zero(): Vector4;
|
|
114
|
-
static one(): Vector4;
|
|
115
|
-
static dummy(): Vector4;
|
|
116
|
-
static normalize(vec: IVector4): Vector4;
|
|
117
|
-
static add(l_vec: IVector4, r_vec: IVector4): Vector4;
|
|
118
|
-
static subtract(l_vec: IVector4, r_vec: IVector4): Vector4;
|
|
119
|
-
static multiply(vec: IVector4, value: number): Vector4;
|
|
120
|
-
static multiplyVector(l_vec: IVector4, r_vec: IVector4): Vector4;
|
|
121
|
-
static divide(vec: IVector4, value: number): Vector4;
|
|
122
|
-
static divideVector(l_vec: IVector4, r_vec: IVector4): Vector4;
|
|
123
|
-
clone(): Vector4;
|
|
124
|
-
}
|
|
125
|
-
export declare class Vector4d extends Vector4_<Float64ArrayConstructor> {
|
|
126
|
-
private constructor();
|
|
127
|
-
static fromCopyArray4(array: Array4<number>): Vector4d;
|
|
128
|
-
static fromCopyArray(array: Array4<number>): Vector4d;
|
|
129
|
-
static fromArrayBuffer(arrayBuffer: ArrayBuffer): Vector4d;
|
|
130
|
-
static fromFloat64Array(float64Array: Float64Array): Vector4d;
|
|
131
|
-
static zero(): Vector4d;
|
|
132
|
-
static one(): Vector4d;
|
|
133
|
-
static dummy(): Vector4d;
|
|
134
|
-
static normalize(vec: IVector4): Vector4d;
|
|
135
|
-
static add(l_vec: IVector4, r_vec: IVector4): Vector4d;
|
|
136
|
-
static subtract(l_vec: IVector4, r_vec: IVector4): Vector4d;
|
|
137
|
-
static multiply(vec: IVector4, value: number): Vector4d;
|
|
138
|
-
static multiplyVector(l_vec: IVector4, r_vec: IVector4): Vector4d;
|
|
139
|
-
static divide(vec: IVector4, value: number): Vector4d;
|
|
140
|
-
static divideVector(l_vec: IVector4, r_vec: IVector4): Vector4d;
|
|
141
|
-
clone(): Vector4d;
|
|
142
|
-
}
|
|
143
|
-
export declare type Vector4f = Vector4;
|
|
144
|
-
export declare const ConstVector4_1_1_1_1: Vector4;
|
|
145
|
-
export declare const ConstVector4_0_0_0_1: Vector4;
|
|
146
|
-
export declare const ConstVector4_0_0_0_0: Vector4;
|
|
1
|
+
import { IVector2, IVector3, IVector4, IMutableVector4 } from './IVector';
|
|
2
|
+
import { Array4, FloatTypedArray, FloatTypedArrayConstructor } from '../../types/CommonTypes';
|
|
3
|
+
import AbstractVector from './AbstractVector';
|
|
4
|
+
export declare class Vector4_<T extends FloatTypedArrayConstructor> extends AbstractVector implements IVector4 {
|
|
5
|
+
protected constructor(v: FloatTypedArray, { type }: {
|
|
6
|
+
type: T;
|
|
7
|
+
});
|
|
8
|
+
get x(): number;
|
|
9
|
+
get y(): number;
|
|
10
|
+
get z(): number;
|
|
11
|
+
get w(): number;
|
|
12
|
+
get glslStrAsFloat(): string;
|
|
13
|
+
get glslStrAsInt(): string;
|
|
14
|
+
static _fromCopyArray4(array: Array4<number>, type: FloatTypedArrayConstructor): Vector4_<FloatTypedArrayConstructor>;
|
|
15
|
+
static _fromCopyArray(array: Array<number>, type: FloatTypedArrayConstructor): Vector4_<FloatTypedArrayConstructor>;
|
|
16
|
+
static _fromCopyVector4(vec4: IVector4, type: FloatTypedArrayConstructor): Vector4_<FloatTypedArrayConstructor>;
|
|
17
|
+
static _fromCopyVector3(vec3: IVector3, type: FloatTypedArrayConstructor): Vector4_<FloatTypedArrayConstructor>;
|
|
18
|
+
static _fromVector2(vec2: IVector2, type: FloatTypedArrayConstructor): Vector4_<FloatTypedArrayConstructor>;
|
|
19
|
+
static get compositionType(): import("../definitions/CompositionType").CompositionTypeEnum;
|
|
20
|
+
/**
|
|
21
|
+
* to square length(static version)
|
|
22
|
+
*/
|
|
23
|
+
static lengthSquared(vec: IVector4): number;
|
|
24
|
+
static lengthBtw(l_vec: IVector4, r_vec: IVector4): number;
|
|
25
|
+
/**
|
|
26
|
+
* Zero Vector
|
|
27
|
+
*/
|
|
28
|
+
static _zero(type: FloatTypedArrayConstructor): Vector4_<FloatTypedArrayConstructor>;
|
|
29
|
+
static _one(type: FloatTypedArrayConstructor): Vector4_<FloatTypedArrayConstructor>;
|
|
30
|
+
static _dummy(type: FloatTypedArrayConstructor): Vector4_<FloatTypedArrayConstructor>;
|
|
31
|
+
/**
|
|
32
|
+
* normalize(static version)
|
|
33
|
+
*/
|
|
34
|
+
static _normalize(vec: IVector4, type: FloatTypedArrayConstructor): Vector4_<FloatTypedArrayConstructor>;
|
|
35
|
+
/**
|
|
36
|
+
* add value(static version)
|
|
37
|
+
*/
|
|
38
|
+
static _add(l_vec: IVector4, r_vec: IVector4, type: FloatTypedArrayConstructor): Vector4_<FloatTypedArrayConstructor>;
|
|
39
|
+
/**
|
|
40
|
+
* add value(static version)
|
|
41
|
+
*/
|
|
42
|
+
static addTo(l_vec: IVector4, r_vec: IVector4, out: IMutableVector4): IMutableVector4;
|
|
43
|
+
/**
|
|
44
|
+
* subtract(static version)
|
|
45
|
+
*/
|
|
46
|
+
static _subtract(l_vec: IVector4, r_vec: IVector4, type: FloatTypedArrayConstructor): Vector4_<FloatTypedArrayConstructor>;
|
|
47
|
+
/**
|
|
48
|
+
* subtract(static version)
|
|
49
|
+
*/
|
|
50
|
+
static subtractTo(l_vec: IVector4, r_vec: IVector4, out: IMutableVector4): IMutableVector4;
|
|
51
|
+
/**
|
|
52
|
+
* multiply(static version)
|
|
53
|
+
*/
|
|
54
|
+
static _multiply(vec: IVector4, value: number, type: FloatTypedArrayConstructor): Vector4_<FloatTypedArrayConstructor>;
|
|
55
|
+
/**
|
|
56
|
+
* multiplyTo(static version)
|
|
57
|
+
*/
|
|
58
|
+
static multiplyTo(vec: IVector4, value: number, out: IMutableVector4): IMutableVector4;
|
|
59
|
+
/**
|
|
60
|
+
* multiply vector(static version)
|
|
61
|
+
*/
|
|
62
|
+
static _multiplyVector(l_vec: IVector4, r_vec: IVector4, type: FloatTypedArrayConstructor): Vector4_<FloatTypedArrayConstructor>;
|
|
63
|
+
/**
|
|
64
|
+
* multiply vector(static version)
|
|
65
|
+
*/
|
|
66
|
+
static multiplyVectorTo(l_vec: IVector4, r_vec: IVector4, out: IMutableVector4): IMutableVector4;
|
|
67
|
+
/**
|
|
68
|
+
* divide(static version)
|
|
69
|
+
*/
|
|
70
|
+
static _divide(vec: IVector4, value: number, type: FloatTypedArrayConstructor): Vector4_<FloatTypedArrayConstructor>;
|
|
71
|
+
/**
|
|
72
|
+
* divide by value(static version)
|
|
73
|
+
*/
|
|
74
|
+
static divideTo(vec: IVector4, value: number, out: IMutableVector4): IMutableVector4;
|
|
75
|
+
/**
|
|
76
|
+
* divide vector(static version)
|
|
77
|
+
*/
|
|
78
|
+
static _divideVector(l_vec: IVector4, r_vec: IVector4, type: FloatTypedArrayConstructor): Vector4_<FloatTypedArrayConstructor>;
|
|
79
|
+
/**
|
|
80
|
+
* divide by vector(static version)
|
|
81
|
+
*/
|
|
82
|
+
static divideVectorTo(l_vec: IVector4, r_vec: IVector4, out: IMutableVector4): IMutableVector4;
|
|
83
|
+
/**
|
|
84
|
+
* dot product(static version)
|
|
85
|
+
*/
|
|
86
|
+
static dot(l_vec: IVector4, r_vec: IVector4): number;
|
|
87
|
+
toString(): string;
|
|
88
|
+
toStringApproximately(): string;
|
|
89
|
+
flattenAsArray(): number[];
|
|
90
|
+
isDummy(): boolean;
|
|
91
|
+
isEqual(vec: IVector4, delta?: number): boolean;
|
|
92
|
+
isStrictEqual(vec: IVector4): boolean;
|
|
93
|
+
at(i: number): number;
|
|
94
|
+
length(): number;
|
|
95
|
+
lengthSquared(): number;
|
|
96
|
+
lengthTo(vec: IVector4): number;
|
|
97
|
+
/**
|
|
98
|
+
* dot product
|
|
99
|
+
*/
|
|
100
|
+
dot(vec: IVector4): number;
|
|
101
|
+
get className(): string;
|
|
102
|
+
clone(): any;
|
|
103
|
+
}
|
|
104
|
+
export default class Vector4 extends Vector4_<Float32ArrayConstructor> {
|
|
105
|
+
constructor(x: Float32Array);
|
|
106
|
+
static fromCopyArray(array: Array4<number>): Vector4;
|
|
107
|
+
static fromCopyArray4(array: Array4<number>): Vector4;
|
|
108
|
+
static fromCopyVector3(vec3: IVector3): Vector4;
|
|
109
|
+
static fromCopyVector4(vec4: IVector4): Vector4;
|
|
110
|
+
static fromArrayBuffer(arrayBuffer: ArrayBuffer): Vector4;
|
|
111
|
+
static fromFloat32Array(float32Array: Float32Array): Vector4;
|
|
112
|
+
static fromCopyFloat32Array(float32Array: Float32Array): Vector4;
|
|
113
|
+
static zero(): Vector4;
|
|
114
|
+
static one(): Vector4;
|
|
115
|
+
static dummy(): Vector4;
|
|
116
|
+
static normalize(vec: IVector4): Vector4;
|
|
117
|
+
static add(l_vec: IVector4, r_vec: IVector4): Vector4;
|
|
118
|
+
static subtract(l_vec: IVector4, r_vec: IVector4): Vector4;
|
|
119
|
+
static multiply(vec: IVector4, value: number): Vector4;
|
|
120
|
+
static multiplyVector(l_vec: IVector4, r_vec: IVector4): Vector4;
|
|
121
|
+
static divide(vec: IVector4, value: number): Vector4;
|
|
122
|
+
static divideVector(l_vec: IVector4, r_vec: IVector4): Vector4;
|
|
123
|
+
clone(): Vector4;
|
|
124
|
+
}
|
|
125
|
+
export declare class Vector4d extends Vector4_<Float64ArrayConstructor> {
|
|
126
|
+
private constructor();
|
|
127
|
+
static fromCopyArray4(array: Array4<number>): Vector4d;
|
|
128
|
+
static fromCopyArray(array: Array4<number>): Vector4d;
|
|
129
|
+
static fromArrayBuffer(arrayBuffer: ArrayBuffer): Vector4d;
|
|
130
|
+
static fromFloat64Array(float64Array: Float64Array): Vector4d;
|
|
131
|
+
static zero(): Vector4d;
|
|
132
|
+
static one(): Vector4d;
|
|
133
|
+
static dummy(): Vector4d;
|
|
134
|
+
static normalize(vec: IVector4): Vector4d;
|
|
135
|
+
static add(l_vec: IVector4, r_vec: IVector4): Vector4d;
|
|
136
|
+
static subtract(l_vec: IVector4, r_vec: IVector4): Vector4d;
|
|
137
|
+
static multiply(vec: IVector4, value: number): Vector4d;
|
|
138
|
+
static multiplyVector(l_vec: IVector4, r_vec: IVector4): Vector4d;
|
|
139
|
+
static divide(vec: IVector4, value: number): Vector4d;
|
|
140
|
+
static divideVector(l_vec: IVector4, r_vec: IVector4): Vector4d;
|
|
141
|
+
clone(): Vector4d;
|
|
142
|
+
}
|
|
143
|
+
export declare type Vector4f = Vector4;
|
|
144
|
+
export declare const ConstVector4_1_1_1_1: Vector4;
|
|
145
|
+
export declare const ConstVector4_0_0_0_1: Vector4;
|
|
146
|
+
export declare const ConstVector4_0_0_0_0: Vector4;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TypedArray } from '../../types/CommonTypes';
|
|
2
|
-
export default class VectorN {
|
|
3
|
-
_v: TypedArray;
|
|
4
|
-
constructor(typedArray: TypedArray);
|
|
5
|
-
}
|
|
1
|
+
import { TypedArray } from '../../types/CommonTypes';
|
|
2
|
+
export default class VectorN {
|
|
3
|
+
_v: TypedArray;
|
|
4
|
+
constructor(typedArray: TypedArray);
|
|
5
|
+
}
|