rhodonite 0.19.9 → 0.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (199) hide show
  1. package/README.md +32 -2
  2. package/VERSION-FILE +1 -1
  3. package/dist/esm/effekseer/main.d.ts +3 -1
  4. package/dist/esm/foundation/components/Animation/AnimationComponent.d.ts +15 -1
  5. package/dist/esm/foundation/components/Animation/AnimationStateRepository.d.ts +26 -10
  6. package/dist/esm/foundation/components/AnimationState/AnimationStateComponent.d.ts +14 -0
  7. package/dist/esm/foundation/components/CharacterController/CharacterAnimationController.d.ts +63 -0
  8. package/dist/esm/foundation/components/CharacterController/CharacterControllerComponent.d.ts +67 -0
  9. package/dist/esm/foundation/components/CharacterController/ICharacterControllerEntity.d.ts +4 -0
  10. package/dist/esm/foundation/components/CharacterController/createCharacterControllerEntity.d.ts +4 -0
  11. package/dist/esm/foundation/components/CharacterController/index.d.ts +4 -0
  12. package/dist/esm/foundation/components/ComponentTypes.d.ts +6 -0
  13. package/dist/esm/foundation/components/Physics/PhysicsComponent.d.ts +27 -0
  14. package/dist/esm/foundation/components/SceneGraph/SceneGraphComponent.d.ts +30 -0
  15. package/dist/esm/foundation/components/Shape/IShapeEntity.d.ts +4 -0
  16. package/dist/esm/foundation/components/Shape/ShapeComponent.d.ts +43 -0
  17. package/dist/esm/foundation/components/Shape/createShapeEntity.d.ts +3 -0
  18. package/dist/esm/foundation/components/Shape/index.d.ts +3 -0
  19. package/dist/esm/foundation/components/Skeletal/SkeletalComponent.d.ts +138 -45
  20. package/dist/esm/foundation/components/Transform/TransformComponent.d.ts +2 -3
  21. package/dist/esm/foundation/components/Trigger/ITriggerEntity.d.ts +4 -0
  22. package/dist/esm/foundation/components/Trigger/TriggerComponent.d.ts +58 -0
  23. package/dist/esm/foundation/components/Trigger/index.d.ts +2 -0
  24. package/dist/esm/foundation/components/Vrm/VrmComponent.d.ts +16 -1
  25. package/dist/esm/foundation/components/WellKnownComponentTIDs.d.ts +4 -1
  26. package/dist/esm/foundation/components/index.d.ts +3 -0
  27. package/dist/esm/foundation/core/Component.d.ts +63 -3
  28. package/dist/esm/foundation/core/ComponentMemoryRegistry.d.ts +59 -1
  29. package/dist/esm/foundation/core/Config.d.ts +8 -7
  30. package/dist/esm/foundation/core/Entity.d.ts +15 -0
  31. package/dist/esm/foundation/definitions/BoneDataType.d.ts +12 -1
  32. package/dist/esm/foundation/definitions/PhysicsShapeType.d.ts +1 -0
  33. package/dist/esm/foundation/definitions/ProcessApproach.d.ts +8 -4
  34. package/dist/esm/foundation/exporter/Gltf2ExporterOps.d.ts +2 -0
  35. package/dist/esm/foundation/geometry/Shape.d.ts +35 -0
  36. package/dist/esm/foundation/geometry/index.d.ts +1 -0
  37. package/dist/esm/foundation/geometry/shapes/Cylinder.d.ts +16 -0
  38. package/dist/esm/foundation/geometry/shapes/index.d.ts +1 -0
  39. package/dist/esm/foundation/gizmos/ShapeGizmo.d.ts +22 -0
  40. package/dist/esm/foundation/gizmos/index.d.ts +1 -0
  41. package/dist/esm/foundation/helpers/EntityHelper.d.ts +6 -0
  42. package/dist/esm/foundation/helpers/MeshHelper.d.ts +275 -15
  43. package/dist/esm/foundation/importer/AnimationAssigner.d.ts +62 -3
  44. package/dist/esm/foundation/importer/BoneDataTypeDetector.d.ts +31 -0
  45. package/dist/esm/foundation/importer/Gltf2Importer.d.ts +6 -0
  46. package/dist/esm/foundation/importer/KhrPhysicsImporter.d.ts +58 -0
  47. package/dist/esm/foundation/importer/VrmaImporter.d.ts +11 -3
  48. package/dist/esm/foundation/importer/index.d.ts +2 -0
  49. package/dist/esm/foundation/math/AbstractMatrix.d.ts +3 -2
  50. package/dist/esm/foundation/math/AbstractQuaternion.d.ts +2 -1
  51. package/dist/esm/foundation/math/AnimatedQuaternion.d.ts +4 -0
  52. package/dist/esm/foundation/math/AnimatedScalar.d.ts +4 -0
  53. package/dist/esm/foundation/math/AnimatedVector2.d.ts +4 -0
  54. package/dist/esm/foundation/math/AnimatedVector3.d.ts +4 -0
  55. package/dist/esm/foundation/math/AnimatedVector4.d.ts +4 -0
  56. package/dist/esm/foundation/math/AnimatedVectorN.d.ts +4 -0
  57. package/dist/esm/foundation/math/IAnimatedValue.d.ts +12 -0
  58. package/dist/esm/foundation/math/IMatrix.d.ts +2 -2
  59. package/dist/esm/foundation/math/IQuaternion.d.ts +4 -4
  60. package/dist/esm/foundation/math/LogQuaternion.d.ts +110 -38
  61. package/dist/esm/foundation/math/MathUtil.d.ts +63 -1
  62. package/dist/esm/foundation/math/Matrix22.d.ts +176 -30
  63. package/dist/esm/foundation/math/Matrix33.d.ts +206 -38
  64. package/dist/esm/foundation/math/Matrix44.d.ts +222 -39
  65. package/dist/esm/foundation/math/MutableMatrix22.d.ts +125 -130
  66. package/dist/esm/foundation/math/MutableMatrix33.d.ts +148 -162
  67. package/dist/esm/foundation/math/MutableMatrix44.d.ts +159 -183
  68. package/dist/esm/foundation/math/MutableQuaternion.d.ts +241 -132
  69. package/dist/esm/foundation/math/MutableScalar.d.ts +11 -12
  70. package/dist/esm/foundation/math/MutableVector2.d.ts +30 -31
  71. package/dist/esm/foundation/math/MutableVector3.d.ts +28 -26
  72. package/dist/esm/foundation/math/MutableVector4.d.ts +37 -37
  73. package/dist/esm/foundation/math/Quaternion.d.ts +529 -36
  74. package/dist/esm/foundation/math/Scalar.d.ts +13 -14
  75. package/dist/esm/foundation/math/Vector2.d.ts +38 -38
  76. package/dist/esm/foundation/math/Vector3.d.ts +55 -54
  77. package/dist/esm/foundation/math/Vector4.d.ts +54 -55
  78. package/dist/esm/foundation/misc/MiscUtil.d.ts +79 -16
  79. package/dist/esm/foundation/misc/Time.d.ts +10 -1
  80. package/dist/esm/foundation/physics/CharacterControllerStrategy.d.ts +65 -0
  81. package/dist/esm/foundation/physics/Oimo/OimoPhysicsStrategy.d.ts +17 -1
  82. package/dist/esm/foundation/physics/PhysicsProperty.d.ts +43 -0
  83. package/dist/esm/foundation/physics/PhysicsStrategy.d.ts +15 -0
  84. package/dist/esm/foundation/physics/PhysicsWorldQuery.d.ts +65 -0
  85. package/dist/esm/foundation/physics/Rapier/RapierCharacterControllerStrategy.d.ts +58 -0
  86. package/dist/esm/foundation/physics/Rapier/RapierPhysicsStrategy.d.ts +157 -19
  87. package/dist/esm/foundation/physics/Rapier/RapierPhysicsWorldQueryStrategy.d.ts +11 -0
  88. package/dist/esm/foundation/physics/Rapier/index.d.ts +2 -0
  89. package/dist/esm/foundation/physics/ShapeTransformResolver.d.ts +19 -0
  90. package/dist/esm/foundation/physics/index.d.ts +2 -0
  91. package/dist/esm/index.js +728 -723
  92. package/dist/esm/types/AnimationTypes.d.ts +1 -1
  93. package/dist/esm/types/KHR_implicit_shapes.d.ts +47 -0
  94. package/dist/esm/types/KHR_physics_rigid_bodies.d.ts +54 -0
  95. package/dist/esm/types/VRMC.d.ts +12 -12
  96. package/dist/esm/types/VRMC_vrm_animation.d.ts +5 -0
  97. package/dist/esm/types/glTF2.d.ts +8 -0
  98. package/dist/esm/types/index.d.ts +2 -0
  99. package/dist/esm/webgl/main.d.ts +2 -1
  100. package/dist/esm/webgl/textureLoader/KTX2TextureLoader.d.ts +12 -0
  101. package/dist/esmdev/effekseer/main.d.ts +3 -1
  102. package/dist/esmdev/foundation/components/Animation/AnimationComponent.d.ts +15 -1
  103. package/dist/esmdev/foundation/components/Animation/AnimationStateRepository.d.ts +26 -10
  104. package/dist/esmdev/foundation/components/AnimationState/AnimationStateComponent.d.ts +14 -0
  105. package/dist/esmdev/foundation/components/CharacterController/CharacterAnimationController.d.ts +63 -0
  106. package/dist/esmdev/foundation/components/CharacterController/CharacterControllerComponent.d.ts +67 -0
  107. package/dist/esmdev/foundation/components/CharacterController/ICharacterControllerEntity.d.ts +4 -0
  108. package/dist/esmdev/foundation/components/CharacterController/createCharacterControllerEntity.d.ts +4 -0
  109. package/dist/esmdev/foundation/components/CharacterController/index.d.ts +4 -0
  110. package/dist/esmdev/foundation/components/ComponentTypes.d.ts +6 -0
  111. package/dist/esmdev/foundation/components/Physics/PhysicsComponent.d.ts +27 -0
  112. package/dist/esmdev/foundation/components/SceneGraph/SceneGraphComponent.d.ts +30 -0
  113. package/dist/esmdev/foundation/components/Shape/IShapeEntity.d.ts +4 -0
  114. package/dist/esmdev/foundation/components/Shape/ShapeComponent.d.ts +43 -0
  115. package/dist/esmdev/foundation/components/Shape/createShapeEntity.d.ts +3 -0
  116. package/dist/esmdev/foundation/components/Shape/index.d.ts +3 -0
  117. package/dist/esmdev/foundation/components/Skeletal/SkeletalComponent.d.ts +138 -45
  118. package/dist/esmdev/foundation/components/Transform/TransformComponent.d.ts +2 -3
  119. package/dist/esmdev/foundation/components/Trigger/ITriggerEntity.d.ts +4 -0
  120. package/dist/esmdev/foundation/components/Trigger/TriggerComponent.d.ts +58 -0
  121. package/dist/esmdev/foundation/components/Trigger/index.d.ts +2 -0
  122. package/dist/esmdev/foundation/components/Vrm/VrmComponent.d.ts +16 -1
  123. package/dist/esmdev/foundation/components/WellKnownComponentTIDs.d.ts +4 -1
  124. package/dist/esmdev/foundation/components/index.d.ts +3 -0
  125. package/dist/esmdev/foundation/core/Component.d.ts +63 -3
  126. package/dist/esmdev/foundation/core/ComponentMemoryRegistry.d.ts +59 -1
  127. package/dist/esmdev/foundation/core/Config.d.ts +8 -7
  128. package/dist/esmdev/foundation/core/Entity.d.ts +15 -0
  129. package/dist/esmdev/foundation/definitions/BoneDataType.d.ts +12 -1
  130. package/dist/esmdev/foundation/definitions/PhysicsShapeType.d.ts +1 -0
  131. package/dist/esmdev/foundation/definitions/ProcessApproach.d.ts +8 -4
  132. package/dist/esmdev/foundation/exporter/Gltf2ExporterOps.d.ts +2 -0
  133. package/dist/esmdev/foundation/geometry/Shape.d.ts +35 -0
  134. package/dist/esmdev/foundation/geometry/index.d.ts +1 -0
  135. package/dist/esmdev/foundation/geometry/shapes/Cylinder.d.ts +16 -0
  136. package/dist/esmdev/foundation/geometry/shapes/index.d.ts +1 -0
  137. package/dist/esmdev/foundation/gizmos/ShapeGizmo.d.ts +22 -0
  138. package/dist/esmdev/foundation/gizmos/index.d.ts +1 -0
  139. package/dist/esmdev/foundation/helpers/EntityHelper.d.ts +6 -0
  140. package/dist/esmdev/foundation/helpers/MeshHelper.d.ts +275 -15
  141. package/dist/esmdev/foundation/importer/AnimationAssigner.d.ts +62 -3
  142. package/dist/esmdev/foundation/importer/BoneDataTypeDetector.d.ts +31 -0
  143. package/dist/esmdev/foundation/importer/Gltf2Importer.d.ts +6 -0
  144. package/dist/esmdev/foundation/importer/KhrPhysicsImporter.d.ts +58 -0
  145. package/dist/esmdev/foundation/importer/VrmaImporter.d.ts +11 -3
  146. package/dist/esmdev/foundation/importer/index.d.ts +2 -0
  147. package/dist/esmdev/foundation/math/AbstractMatrix.d.ts +3 -2
  148. package/dist/esmdev/foundation/math/AbstractQuaternion.d.ts +2 -1
  149. package/dist/esmdev/foundation/math/AnimatedQuaternion.d.ts +4 -0
  150. package/dist/esmdev/foundation/math/AnimatedScalar.d.ts +4 -0
  151. package/dist/esmdev/foundation/math/AnimatedVector2.d.ts +4 -0
  152. package/dist/esmdev/foundation/math/AnimatedVector3.d.ts +4 -0
  153. package/dist/esmdev/foundation/math/AnimatedVector4.d.ts +4 -0
  154. package/dist/esmdev/foundation/math/AnimatedVectorN.d.ts +4 -0
  155. package/dist/esmdev/foundation/math/IAnimatedValue.d.ts +12 -0
  156. package/dist/esmdev/foundation/math/IMatrix.d.ts +2 -2
  157. package/dist/esmdev/foundation/math/IQuaternion.d.ts +4 -4
  158. package/dist/esmdev/foundation/math/LogQuaternion.d.ts +110 -38
  159. package/dist/esmdev/foundation/math/MathUtil.d.ts +63 -1
  160. package/dist/esmdev/foundation/math/Matrix22.d.ts +176 -30
  161. package/dist/esmdev/foundation/math/Matrix33.d.ts +206 -38
  162. package/dist/esmdev/foundation/math/Matrix44.d.ts +222 -39
  163. package/dist/esmdev/foundation/math/MutableMatrix22.d.ts +125 -130
  164. package/dist/esmdev/foundation/math/MutableMatrix33.d.ts +148 -162
  165. package/dist/esmdev/foundation/math/MutableMatrix44.d.ts +159 -183
  166. package/dist/esmdev/foundation/math/MutableQuaternion.d.ts +241 -132
  167. package/dist/esmdev/foundation/math/MutableScalar.d.ts +11 -12
  168. package/dist/esmdev/foundation/math/MutableVector2.d.ts +30 -31
  169. package/dist/esmdev/foundation/math/MutableVector3.d.ts +28 -26
  170. package/dist/esmdev/foundation/math/MutableVector4.d.ts +37 -37
  171. package/dist/esmdev/foundation/math/Quaternion.d.ts +529 -36
  172. package/dist/esmdev/foundation/math/Scalar.d.ts +13 -14
  173. package/dist/esmdev/foundation/math/Vector2.d.ts +38 -38
  174. package/dist/esmdev/foundation/math/Vector3.d.ts +55 -54
  175. package/dist/esmdev/foundation/math/Vector4.d.ts +54 -55
  176. package/dist/esmdev/foundation/misc/MiscUtil.d.ts +79 -16
  177. package/dist/esmdev/foundation/misc/Time.d.ts +10 -1
  178. package/dist/esmdev/foundation/physics/CharacterControllerStrategy.d.ts +65 -0
  179. package/dist/esmdev/foundation/physics/Oimo/OimoPhysicsStrategy.d.ts +17 -1
  180. package/dist/esmdev/foundation/physics/PhysicsProperty.d.ts +43 -0
  181. package/dist/esmdev/foundation/physics/PhysicsStrategy.d.ts +15 -0
  182. package/dist/esmdev/foundation/physics/PhysicsWorldQuery.d.ts +65 -0
  183. package/dist/esmdev/foundation/physics/Rapier/RapierCharacterControllerStrategy.d.ts +58 -0
  184. package/dist/esmdev/foundation/physics/Rapier/RapierPhysicsStrategy.d.ts +157 -19
  185. package/dist/esmdev/foundation/physics/Rapier/RapierPhysicsWorldQueryStrategy.d.ts +11 -0
  186. package/dist/esmdev/foundation/physics/Rapier/index.d.ts +2 -0
  187. package/dist/esmdev/foundation/physics/ShapeTransformResolver.d.ts +19 -0
  188. package/dist/esmdev/foundation/physics/index.d.ts +2 -0
  189. package/dist/esmdev/index.js +35168 -27712
  190. package/dist/esmdev/types/AnimationTypes.d.ts +1 -1
  191. package/dist/esmdev/types/KHR_implicit_shapes.d.ts +47 -0
  192. package/dist/esmdev/types/KHR_physics_rigid_bodies.d.ts +54 -0
  193. package/dist/esmdev/types/VRMC.d.ts +12 -12
  194. package/dist/esmdev/types/VRMC_vrm_animation.d.ts +5 -0
  195. package/dist/esmdev/types/glTF2.d.ts +8 -0
  196. package/dist/esmdev/types/index.d.ts +2 -0
  197. package/dist/esmdev/webgl/main.d.ts +2 -1
  198. package/dist/esmdev/webgl/textureLoader/KTX2TextureLoader.d.ts +12 -0
  199. package/package.json +25 -23
@@ -132,7 +132,7 @@ export declare class MutableVector2_<T extends FloatTypedArrayConstructor> exten
132
132
  multiplyVector(vec: IVector2): this;
133
133
  /**
134
134
  * Divides this vector by a scalar value (modifies this vector in place).
135
- * If the divisor is zero, sets components to Infinity and logs an error.
135
+ * If the divisor is zero, sets components to 0 and logs an error.
136
136
  *
137
137
  * @param value - The scalar value to divide by
138
138
  * @returns This vector instance for method chaining
@@ -140,7 +140,7 @@ export declare class MutableVector2_<T extends FloatTypedArrayConstructor> exten
140
140
  divide(value: number): this;
141
141
  /**
142
142
  * Divides this vector component-wise by another vector (modifies this vector in place).
143
- * If any component of the divisor is zero, sets that component to Infinity and logs an error.
143
+ * If any component of the divisor is zero, sets that component to 0 and logs an error.
144
144
  *
145
145
  * @param vec - The vector to divide by
146
146
  * @returns This vector instance for method chaining
@@ -293,11 +293,11 @@ export declare class MutableVector2 extends MutableVector2_<Float32ArrayConstruc
293
293
  *
294
294
  * @example
295
295
  * ```typescript
296
- * const vec = MutableVector2d.zero();
296
+ * const vec = MutableVector2D.zero();
297
297
  * vec.setComponents(1.23456789012345, 2.34567890123456);
298
298
  * ```
299
299
  */
300
- export declare class MutableVector2d extends MutableVector2_<Float64ArrayConstructor> {
300
+ export declare class MutableVector2D extends MutableVector2_<Float64ArrayConstructor> {
301
301
  /**
302
302
  * Creates a new mutable 2D vector with 64-bit float components.
303
303
  *
@@ -308,91 +308,90 @@ export declare class MutableVector2d extends MutableVector2_<Float64ArrayConstru
308
308
  * Creates a new vector from a 2-element array by copying the values.
309
309
  *
310
310
  * @param array - A 2-element array containing [x, y] components
311
- * @returns A new MutableVector2d instance
311
+ * @returns A new MutableVector2D instance
312
312
  */
313
- static fromCopyArray(array: Array2<number>): MutableVector2d;
313
+ static fromCopyArray(array: Array2<number>): MutableVector2D;
314
314
  /**
315
315
  * Creates a zero vector (0, 0) with double precision.
316
316
  *
317
- * @returns A new MutableVector2d instance with zero components
317
+ * @returns A new MutableVector2D instance with zero components
318
318
  */
319
- static zero(): MutableVector2d;
319
+ static zero(): MutableVector2D;
320
320
  /**
321
321
  * Creates a vector with all components set to one (1, 1) with double precision.
322
322
  *
323
- * @returns A new MutableVector2d instance with components set to 1
323
+ * @returns A new MutableVector2D instance with components set to 1
324
324
  */
325
- static one(): MutableVector2d;
325
+ static one(): MutableVector2D;
326
326
  /**
327
327
  * Creates a dummy vector for placeholder purposes with double precision.
328
328
  *
329
- * @returns A new MutableVector2d instance
329
+ * @returns A new MutableVector2D instance
330
330
  */
331
- static dummy(): MutableVector2d;
331
+ static dummy(): MutableVector2D;
332
332
  /**
333
333
  * Creates a normalized copy of the given vector with double precision.
334
334
  *
335
335
  * @param vec - The vector to normalize
336
- * @returns A new normalized MutableVector2d instance
336
+ * @returns A new normalized MutableVector2D instance
337
337
  */
338
- static normalize(vec: IVector2): MutableVector2d;
338
+ static normalize(vec: IVector2): MutableVector2D;
339
339
  /**
340
340
  * Creates a new vector by adding two vectors with double precision.
341
341
  *
342
342
  * @param l_vec - The left operand vector
343
343
  * @param r_vec - The right operand vector
344
- * @returns A new MutableVector2d instance containing the sum
344
+ * @returns A new MutableVector2D instance containing the sum
345
345
  */
346
- static add(l_vec: IVector2, r_vec: IVector2): MutableVector2d;
346
+ static add(l_vec: IVector2, r_vec: IVector2): MutableVector2D;
347
347
  /**
348
348
  * Creates a new vector by subtracting the second vector from the first with double precision.
349
349
  *
350
350
  * @param l_vec - The vector to subtract from
351
351
  * @param r_vec - The vector to subtract
352
- * @returns A new MutableVector2d instance containing the difference
352
+ * @returns A new MutableVector2D instance containing the difference
353
353
  */
354
- static subtract(l_vec: IVector2, r_vec: IVector2): MutableVector2d;
354
+ static subtract(l_vec: IVector2, r_vec: IVector2): MutableVector2D;
355
355
  /**
356
356
  * Creates a new vector by multiplying a vector by a scalar with double precision.
357
357
  *
358
358
  * @param vec - The vector to multiply
359
359
  * @param value - The scalar value to multiply by
360
- * @returns A new MutableVector2d instance containing the scaled vector
360
+ * @returns A new MutableVector2D instance containing the scaled vector
361
361
  */
362
- static multiply(vec: IVector2, value: number): MutableVector2d;
362
+ static multiply(vec: IVector2, value: number): MutableVector2D;
363
363
  /**
364
364
  * Creates a new vector by multiplying two vectors component-wise with double precision.
365
365
  *
366
366
  * @param l_vec - The left operand vector
367
367
  * @param r_vec - The right operand vector
368
- * @returns A new MutableVector2d instance containing the component-wise product
368
+ * @returns A new MutableVector2D instance containing the component-wise product
369
369
  */
370
- static multiplyVector(l_vec: IVector2, r_vec: IVector2): MutableVector2d;
370
+ static multiplyVector(l_vec: IVector2, r_vec: IVector2): MutableVector2D;
371
371
  /**
372
372
  * Creates a new vector by dividing a vector by a scalar with double precision.
373
373
  *
374
374
  * @param vec - The vector to divide
375
375
  * @param value - The scalar value to divide by
376
- * @returns A new MutableVector2d instance containing the divided vector
376
+ * @returns A new MutableVector2D instance containing the divided vector
377
377
  */
378
- static divide(vec: IVector2, value: number): MutableVector2d;
378
+ static divide(vec: IVector2, value: number): MutableVector2D;
379
379
  /**
380
380
  * Creates a new vector by dividing two vectors component-wise with double precision.
381
381
  *
382
382
  * @param l_vec - The dividend vector
383
383
  * @param r_vec - The divisor vector
384
- * @returns A new MutableVector2d instance containing the component-wise quotient
384
+ * @returns A new MutableVector2D instance containing the component-wise quotient
385
385
  */
386
- static divideVector(l_vec: IVector2, r_vec: IVector2): MutableVector2d;
386
+ static divideVector(l_vec: IVector2, r_vec: IVector2): MutableVector2D;
387
387
  /**
388
388
  * Creates a deep copy of this vector with double precision.
389
389
  *
390
- * @returns A new MutableVector2d instance with the same component values
390
+ * @returns A new MutableVector2D instance with the same component values
391
391
  */
392
- clone(): MutableVector2d;
392
+ clone(): MutableVector2D;
393
393
  }
394
394
  /**
395
- * Type alias for MutableVector2 using 32-bit float components.
396
- * Provides a more explicit name for single-precision mutable vectors.
395
+ * Alias for the 32-bit (Float32Array) implementation, making the precision explicit.
397
396
  */
398
- export type MutableVector2f = MutableVector2;
397
+ export { MutableVector2 as MutableVector2F };
@@ -106,6 +106,8 @@ export declare class MutableVector3_<T extends FloatTypedArrayConstructor> exten
106
106
  /**
107
107
  * Normalizes this vector to unit length.
108
108
  * Modifies the vector in place to have a magnitude of 1.
109
+ * A zero-length vector stays a zero vector (an error is logged) instead of
110
+ * becoming `Infinity`/`NaN`.
109
111
  *
110
112
  * @returns This vector instance for method chaining
111
113
  */
@@ -145,7 +147,7 @@ export declare class MutableVector3_<T extends FloatTypedArrayConstructor> exten
145
147
  /**
146
148
  * Divides this vector by a scalar value.
147
149
  * Scales all components by 1/value and modifies this vector in place.
148
- * If value is 0, sets all components to Infinity and logs an error.
150
+ * If value is 0, sets all components to 0 and logs an error.
149
151
  *
150
152
  * @param value - The scalar value to divide by
151
153
  * @returns This vector instance for method chaining
@@ -154,7 +156,7 @@ export declare class MutableVector3_<T extends FloatTypedArrayConstructor> exten
154
156
  /**
155
157
  * Divides this vector by another vector component-wise.
156
158
  * Performs element-wise division and modifies this vector in place.
157
- * If any component of the divisor vector is 0, sets the corresponding component to Infinity.
159
+ * If any component of the divisor vector is 0, sets the corresponding component to 0.
158
160
  *
159
161
  * @param vec - The vector to divide by
160
162
  * @returns This vector instance for method chaining
@@ -400,9 +402,9 @@ export declare class MutableVector3 extends MutableVector3_<Float32ArrayConstruc
400
402
  * Provides higher precision vector operations for applications requiring
401
403
  * greater numerical accuracy than 32-bit floats.
402
404
  */
403
- export declare class MutableVector3d extends MutableVector3_<Float64ArrayConstructor> {
405
+ export declare class MutableVector3D extends MutableVector3_<Float64ArrayConstructor> {
404
406
  /**
405
- * Creates a new MutableVector3d instance.
407
+ * Creates a new MutableVector3D instance.
406
408
  *
407
409
  * @param x - The typed array containing the vector components
408
410
  */
@@ -412,26 +414,26 @@ export declare class MutableVector3d extends MutableVector3_<Float64ArrayConstru
412
414
  *
413
415
  * @returns A new zero vector
414
416
  */
415
- static zero(): MutableVector3d;
417
+ static zero(): MutableVector3D;
416
418
  /**
417
419
  * Creates a unit vector (1, 1, 1) with double precision.
418
420
  *
419
421
  * @returns A new unit vector
420
422
  */
421
- static one(): MutableVector3d;
423
+ static one(): MutableVector3D;
422
424
  /**
423
425
  * Creates a dummy vector for initialization purposes with double precision.
424
426
  *
425
427
  * @returns A new dummy vector
426
428
  */
427
- static dummy(): MutableVector3d;
429
+ static dummy(): MutableVector3D;
428
430
  /**
429
431
  * Creates a normalized copy of the given vector with double precision.
430
432
  *
431
433
  * @param vec - The vector to normalize
432
434
  * @returns A new normalized vector
433
435
  */
434
- static normalize(vec: IVector3): MutableVector3d;
436
+ static normalize(vec: IVector3): MutableVector3D;
435
437
  /**
436
438
  * Creates a new vector that is the sum of two vectors with double precision.
437
439
  *
@@ -439,7 +441,7 @@ export declare class MutableVector3d extends MutableVector3_<Float64ArrayConstru
439
441
  * @param r_vec - The right vector
440
442
  * @returns A new vector containing the sum
441
443
  */
442
- static add(l_vec: IVector3, r_vec: IVector3): MutableVector3d;
444
+ static add(l_vec: IVector3, r_vec: IVector3): MutableVector3D;
443
445
  /**
444
446
  * Creates a new vector that is the difference of two vectors with double precision.
445
447
  *
@@ -447,7 +449,7 @@ export declare class MutableVector3d extends MutableVector3_<Float64ArrayConstru
447
449
  * @param r_vec - The right vector (subtrahend)
448
450
  * @returns A new vector containing the difference
449
451
  */
450
- static subtract(l_vec: IVector3, r_vec: IVector3): MutableVector3d;
452
+ static subtract(l_vec: IVector3, r_vec: IVector3): MutableVector3D;
451
453
  /**
452
454
  * Creates a new vector that is the scalar multiplication of a vector with double precision.
453
455
  *
@@ -455,7 +457,7 @@ export declare class MutableVector3d extends MutableVector3_<Float64ArrayConstru
455
457
  * @param value - The scalar value
456
458
  * @returns A new scaled vector
457
459
  */
458
- static multiply(vec: IVector3, value: number): MutableVector3d;
460
+ static multiply(vec: IVector3, value: number): MutableVector3D;
459
461
  /**
460
462
  * Creates a new vector that is the component-wise multiplication of two vectors with double precision.
461
463
  *
@@ -463,7 +465,7 @@ export declare class MutableVector3d extends MutableVector3_<Float64ArrayConstru
463
465
  * @param r_vec - The right vector
464
466
  * @returns A new vector containing the component-wise product
465
467
  */
466
- static multiplyVector(l_vec: IVector3, r_vec: IVector3): MutableVector3d;
468
+ static multiplyVector(l_vec: IVector3, r_vec: IVector3): MutableVector3D;
467
469
  /**
468
470
  * Creates a new vector that is the scalar division of a vector with double precision.
469
471
  *
@@ -471,7 +473,7 @@ export declare class MutableVector3d extends MutableVector3_<Float64ArrayConstru
471
473
  * @param value - The scalar divisor
472
474
  * @returns A new divided vector
473
475
  */
474
- static divide(vec: IVector3, value: number): MutableVector3d;
476
+ static divide(vec: IVector3, value: number): MutableVector3D;
475
477
  /**
476
478
  * Creates a new vector that is the component-wise division of two vectors with double precision.
477
479
  *
@@ -479,7 +481,7 @@ export declare class MutableVector3d extends MutableVector3_<Float64ArrayConstru
479
481
  * @param r_vec - The divisor vector
480
482
  * @returns A new vector containing the component-wise quotient
481
483
  */
482
- static divideVector(l_vec: IVector3, r_vec: IVector3): MutableVector3d;
484
+ static divideVector(l_vec: IVector3, r_vec: IVector3): MutableVector3D;
483
485
  /**
484
486
  * Creates a new vector that is the cross product of two vectors with double precision.
485
487
  *
@@ -487,7 +489,7 @@ export declare class MutableVector3d extends MutableVector3_<Float64ArrayConstru
487
489
  * @param r_vec - The right vector
488
490
  * @returns A new vector containing the cross product
489
491
  */
490
- static cross(l_vec: IVector3, r_vec: IVector3): MutableVector3d;
492
+ static cross(l_vec: IVector3, r_vec: IVector3): MutableVector3D;
491
493
  /**
492
494
  * Creates a new vector by applying a quaternion rotation to a vector with double precision.
493
495
  *
@@ -495,7 +497,7 @@ export declare class MutableVector3d extends MutableVector3_<Float64ArrayConstru
495
497
  * @param vec - The vector to rotate
496
498
  * @returns A new rotated vector
497
499
  */
498
- static multiplyQuaternion(quat: IQuaternion, vec: IVector3): MutableVector3d;
500
+ static multiplyQuaternion(quat: IQuaternion, vec: IVector3): MutableVector3D;
499
501
  /**
500
502
  * Creates a vector from three component values with double precision.
501
503
  *
@@ -504,28 +506,28 @@ export declare class MutableVector3d extends MutableVector3_<Float64ArrayConstru
504
506
  * @param z - The z component
505
507
  * @returns A new vector instance
506
508
  */
507
- static fromCopy3(x: number, y: number, z: number): MutableVector3d;
509
+ static fromCopy3(x: number, y: number, z: number): MutableVector3D;
508
510
  /**
509
511
  * Creates a vector with all components set to the same value with double precision.
510
512
  *
511
513
  * @param val - The value for all components
512
514
  * @returns A new vector instance
513
515
  */
514
- static fromCopy1(val: number): MutableVector3d;
516
+ static fromCopy1(val: number): MutableVector3D;
515
517
  /**
516
518
  * Creates a vector from a 3-element array with double precision.
517
519
  *
518
520
  * @param array - The array containing x, y, z values
519
521
  * @returns A new vector instance
520
522
  */
521
- static fromCopyArray3(array: Array3<number>): MutableVector3d;
523
+ static fromCopyArray3(array: Array3<number>): MutableVector3D;
522
524
  /**
523
525
  * Creates a vector from an array, taking the first 3 elements with double precision.
524
526
  *
525
527
  * @param array - The array containing at least 3 values
526
528
  * @returns A new vector instance
527
529
  */
528
- static fromCopyArray(array: Array<number>): MutableVector3d;
530
+ static fromCopyArray(array: Array<number>): MutableVector3D;
529
531
  /**
530
532
  * Rotates a vector around the X-axis and stores the result in the output vector with double precision.
531
533
  * Only the Y and Z components are affected by X-axis rotation.
@@ -534,7 +536,7 @@ export declare class MutableVector3d extends MutableVector3_<Float64ArrayConstru
534
536
  * @param radian - The rotation angle in radians
535
537
  * @param outVec - The output vector to store the result
536
538
  */
537
- static rotateX(vec3: IVector3, radian: number, outVec: MutableVector3d): void;
539
+ static rotateX(vec3: IVector3, radian: number, outVec: MutableVector3D): void;
538
540
  /**
539
541
  * Rotates a vector around the Y-axis and stores the result in the output vector with double precision.
540
542
  * Only the X and Z components are affected by Y-axis rotation.
@@ -543,7 +545,7 @@ export declare class MutableVector3d extends MutableVector3_<Float64ArrayConstru
543
545
  * @param radian - The rotation angle in radians
544
546
  * @param outVec - The output vector to store the result
545
547
  */
546
- static rotateY(vec3: IVector3, radian: number, outVec: MutableVector3d): void;
548
+ static rotateY(vec3: IVector3, radian: number, outVec: MutableVector3D): void;
547
549
  /**
548
550
  * Rotates a vector around the Z-axis and stores the result in the output vector with double precision.
549
551
  * Only the X and Y components are affected by Z-axis rotation.
@@ -552,15 +554,15 @@ export declare class MutableVector3d extends MutableVector3_<Float64ArrayConstru
552
554
  * @param radian - The rotation angle in radians
553
555
  * @param outVec - The output vector to store the result
554
556
  */
555
- static rotateZ(vec3: IVector3, radian: number, outVec: MutableVector3d): void;
557
+ static rotateZ(vec3: IVector3, radian: number, outVec: MutableVector3D): void;
556
558
  /**
557
559
  * Creates a copy of this vector with double precision.
558
560
  *
559
561
  * @returns A new vector instance with the same values
560
562
  */
561
- clone(): MutableVector3d;
563
+ clone(): MutableVector3D;
562
564
  }
563
565
  /**
564
- * Type alias for MutableVector3 with single precision (32-bit) floating point components.
566
+ * Alias for the 32-bit (Float32Array) implementation, making the precision explicit.
565
567
  */
566
- export type MutableVector3f = MutableVector3;
568
+ export { MutableVector3 as MutableVector3F };
@@ -151,7 +151,7 @@ export declare class MutableVector4_<T extends FloatTypedArrayConstructor> exten
151
151
  multiplyVector(vec: IVector4): this;
152
152
  /**
153
153
  * Divides this vector by a scalar value.
154
- * If the value is zero, sets components to Infinity and logs an error.
154
+ * If the value is zero, sets components to 0 and logs an error.
155
155
  *
156
156
  * @param value - The scalar value to divide by
157
157
  * @returns This vector instance for method chaining
@@ -159,7 +159,7 @@ export declare class MutableVector4_<T extends FloatTypedArrayConstructor> exten
159
159
  divide(value: number): this;
160
160
  /**
161
161
  * Divides this vector by another vector component-wise.
162
- * If any component of the divisor is zero, sets the corresponding result to Infinity.
162
+ * If any component of the divisor is zero, sets the corresponding result to 0.
163
163
  *
164
164
  * @param vec - The vector to divide by
165
165
  * @returns This vector instance for method chaining
@@ -301,9 +301,9 @@ export declare class MutableVector4 extends MutableVector4_<Float32ArrayConstruc
301
301
  * Mutable 4D vector class with 64-bit float components.
302
302
  * Provides higher precision arithmetic compared to MutableVector4.
303
303
  */
304
- export declare class MutableVector4d extends MutableVector4_<Float64ArrayConstructor> {
304
+ export declare class MutableVector4D extends MutableVector4_<Float64ArrayConstructor> {
305
305
  /**
306
- * Creates a new MutableVector4d instance.
306
+ * Creates a new MutableVector4D instance.
307
307
  *
308
308
  * @param x - Float64Array containing the vector components [x, y, z, w]
309
309
  */
@@ -311,109 +311,109 @@ export declare class MutableVector4d extends MutableVector4_<Float64ArrayConstru
311
311
  /**
312
312
  * Creates a zero vector (0, 0, 0, 0) with 64-bit precision.
313
313
  *
314
- * @returns A new MutableVector4d with all components set to 0
314
+ * @returns A new MutableVector4D with all components set to 0
315
315
  */
316
- static zero(): MutableVector4d;
316
+ static zero(): MutableVector4D;
317
317
  /**
318
318
  * Creates a vector with all components set to 1 (1, 1, 1, 1) with 64-bit precision.
319
319
  *
320
- * @returns A new MutableVector4d with all components set to 1
320
+ * @returns A new MutableVector4D with all components set to 1
321
321
  */
322
- static one(): MutableVector4d;
322
+ static one(): MutableVector4D;
323
323
  /**
324
324
  * Creates a dummy vector for placeholder purposes with 64-bit precision.
325
325
  *
326
- * @returns A new MutableVector4d dummy instance
326
+ * @returns A new MutableVector4D dummy instance
327
327
  */
328
- static dummy(): MutableVector4d;
328
+ static dummy(): MutableVector4D;
329
329
  /**
330
330
  * Creates a normalized copy of the given vector with 64-bit precision.
331
331
  *
332
332
  * @param vec - The vector to normalize
333
- * @returns A new normalized MutableVector4d
333
+ * @returns A new normalized MutableVector4D
334
334
  */
335
- static normalize(vec: IVector4): MutableVector4d;
335
+ static normalize(vec: IVector4): MutableVector4D;
336
336
  /**
337
337
  * Creates a new vector by adding two vectors component-wise with 64-bit precision.
338
338
  *
339
339
  * @param l_vec - The left operand vector
340
340
  * @param r_vec - The right operand vector
341
- * @returns A new MutableVector4d containing the sum
341
+ * @returns A new MutableVector4D containing the sum
342
342
  */
343
- static add(l_vec: IVector4, r_vec: IVector4): MutableVector4d;
343
+ static add(l_vec: IVector4, r_vec: IVector4): MutableVector4D;
344
344
  /**
345
345
  * Creates a new vector by subtracting the second vector from the first with 64-bit precision.
346
346
  *
347
347
  * @param l_vec - The vector to subtract from
348
348
  * @param r_vec - The vector to subtract
349
- * @returns A new MutableVector4d containing the difference
349
+ * @returns A new MutableVector4D containing the difference
350
350
  */
351
- static subtract(l_vec: IVector4, r_vec: IVector4): MutableVector4d;
351
+ static subtract(l_vec: IVector4, r_vec: IVector4): MutableVector4D;
352
352
  /**
353
353
  * Creates a new vector by multiplying a vector by a scalar with 64-bit precision.
354
354
  *
355
355
  * @param vec - The vector to multiply
356
356
  * @param value - The scalar value to multiply by
357
- * @returns A new MutableVector4d containing the scaled vector
357
+ * @returns A new MutableVector4D containing the scaled vector
358
358
  */
359
- static multiply(vec: IVector4, value: number): MutableVector4d;
359
+ static multiply(vec: IVector4, value: number): MutableVector4D;
360
360
  /**
361
361
  * Creates a new vector by multiplying two vectors component-wise with 64-bit precision.
362
362
  *
363
363
  * @param l_vec - The left operand vector
364
364
  * @param r_vec - The right operand vector
365
- * @returns A new MutableVector4d containing the component-wise product
365
+ * @returns A new MutableVector4D containing the component-wise product
366
366
  */
367
- static multiplyVector(l_vec: IVector4, r_vec: IVector4): MutableVector4d;
367
+ static multiplyVector(l_vec: IVector4, r_vec: IVector4): MutableVector4D;
368
368
  /**
369
369
  * Creates a new vector by dividing a vector by a scalar with 64-bit precision.
370
370
  *
371
371
  * @param vec - The vector to divide
372
372
  * @param value - The scalar value to divide by
373
- * @returns A new MutableVector4d containing the divided vector
373
+ * @returns A new MutableVector4D containing the divided vector
374
374
  */
375
- static divide(vec: IVector4, value: number): MutableVector4d;
375
+ static divide(vec: IVector4, value: number): MutableVector4D;
376
376
  /**
377
377
  * Creates a new vector by dividing two vectors component-wise with 64-bit precision.
378
378
  *
379
379
  * @param l_vec - The dividend vector
380
380
  * @param r_vec - The divisor vector
381
- * @returns A new MutableVector4d containing the component-wise quotient
381
+ * @returns A new MutableVector4D containing the component-wise quotient
382
382
  */
383
- static divideVector(l_vec: IVector4, r_vec: IVector4): MutableVector4d;
383
+ static divideVector(l_vec: IVector4, r_vec: IVector4): MutableVector4D;
384
384
  /**
385
- * Creates a new MutableVector4d from a 4-element array with 64-bit precision.
385
+ * Creates a new MutableVector4D from a 4-element array with 64-bit precision.
386
386
  *
387
387
  * @param array - Array of exactly 4 numbers [x, y, z, w]
388
- * @returns A new MutableVector4d instance
388
+ * @returns A new MutableVector4D instance
389
389
  */
390
- static fromCopyArray4(array: Array4<number>): MutableVector4d;
390
+ static fromCopyArray4(array: Array4<number>): MutableVector4D;
391
391
  /**
392
- * Creates a new MutableVector4d from an array of numbers with 64-bit precision.
392
+ * Creates a new MutableVector4D from an array of numbers with 64-bit precision.
393
393
  * Takes up to 4 elements from the array.
394
394
  *
395
395
  * @param array - Array of numbers to copy from
396
- * @returns A new MutableVector4d instance
396
+ * @returns A new MutableVector4D instance
397
397
  */
398
- static fromCopyArray(array: Array<number>): MutableVector4d;
398
+ static fromCopyArray(array: Array<number>): MutableVector4D;
399
399
  /**
400
- * Creates a new MutableVector4d from individual component values with 64-bit precision.
400
+ * Creates a new MutableVector4D from individual component values with 64-bit precision.
401
401
  *
402
402
  * @param x - The x component
403
403
  * @param y - The y component
404
404
  * @param z - The z component
405
405
  * @param w - The w component
406
- * @returns A new MutableVector4d instance
406
+ * @returns A new MutableVector4D instance
407
407
  */
408
- static fromCopy4(x: number, y: number, z: number, w: number): MutableVector4d;
408
+ static fromCopy4(x: number, y: number, z: number, w: number): MutableVector4D;
409
409
  /**
410
410
  * Creates a deep copy of this vector with 64-bit precision.
411
411
  *
412
- * @returns A new MutableVector4d instance with copied values
412
+ * @returns A new MutableVector4D instance with copied values
413
413
  */
414
- clone(): MutableVector4d;
414
+ clone(): MutableVector4D;
415
415
  }
416
416
  /**
417
- * Type alias for MutableVector4 to indicate 32-bit float precision.
417
+ * Alias for the 32-bit (Float32Array) implementation, making the precision explicit.
418
418
  */
419
- export type MutableVector4f = MutableVector4;
419
+ export { MutableVector4 as MutableVector4F };