@adobe/data 0.9.74 → 0.9.76

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 (317) hide show
  1. package/dist/ecs/database/transactional-store/create-transactional-store.js +7 -1
  2. package/dist/ecs/database/transactional-store/create-transactional-store.js.map +1 -1
  3. package/dist/ecs/database/transactional-store/create-transactional-store.test.js +42 -0
  4. package/dist/ecs/database/transactional-store/create-transactional-store.test.js.map +1 -1
  5. package/dist/functions/serialization/codec.js +4 -0
  6. package/dist/functions/serialization/codec.js.map +1 -1
  7. package/dist/functions/serialization/serialization.test.js +10 -0
  8. package/dist/functions/serialization/serialization.test.js.map +1 -1
  9. package/dist/math/i32/public.d.ts +2 -1
  10. package/dist/math/i32/public.js +2 -1
  11. package/dist/math/i32/public.js.map +1 -1
  12. package/dist/math/i32/shift-right.d.ts +2 -0
  13. package/dist/math/i32/shift-right.js +3 -0
  14. package/dist/math/i32/shift-right.js.map +1 -0
  15. package/dist/math/u32/count-leading-zeros.d.ts +2 -0
  16. package/dist/math/u32/count-leading-zeros.js +3 -0
  17. package/dist/math/u32/count-leading-zeros.js.map +1 -0
  18. package/dist/math/u32/count-one-bits.d.ts +2 -0
  19. package/dist/math/u32/count-one-bits.js +11 -0
  20. package/dist/math/u32/count-one-bits.js.map +1 -0
  21. package/dist/math/u32/count-trailing-zeros.d.ts +2 -0
  22. package/dist/math/u32/count-trailing-zeros.js +14 -0
  23. package/dist/math/u32/count-trailing-zeros.js.map +1 -0
  24. package/dist/math/u32/public.d.ts +6 -1
  25. package/dist/math/u32/public.js +6 -1
  26. package/dist/math/u32/public.js.map +1 -1
  27. package/dist/math/u32/reverse-bits.d.ts +2 -0
  28. package/dist/math/u32/reverse-bits.js +11 -0
  29. package/dist/math/u32/reverse-bits.js.map +1 -0
  30. package/dist/math/u32/shift-right.d.ts +2 -0
  31. package/dist/math/u32/shift-right.js +3 -0
  32. package/dist/math/u32/shift-right.js.map +1 -0
  33. package/dist/math/vec2/f32/f32.d.ts +4 -0
  34. package/dist/math/vec2/f32/f32.js +3 -0
  35. package/dist/math/vec2/f32/f32.js.map +1 -0
  36. package/dist/math/vec2/f32/functions.d.ts +50 -0
  37. package/dist/math/vec2/f32/functions.js +87 -0
  38. package/dist/math/vec2/f32/functions.js.map +1 -0
  39. package/dist/math/vec2/f32/layout.d.ts +1 -0
  40. package/dist/math/vec2/f32/layout.js +5 -0
  41. package/dist/math/vec2/f32/layout.js.map +1 -0
  42. package/dist/math/vec2/f32/public.d.ts +3 -0
  43. package/dist/math/vec2/f32/public.js +5 -0
  44. package/dist/math/vec2/f32/public.js.map +1 -0
  45. package/dist/math/vec2/f32/schema.d.ts +11 -0
  46. package/dist/math/vec2/f32/schema.js +10 -0
  47. package/dist/math/vec2/f32/schema.js.map +1 -0
  48. package/dist/math/vec2/i32/functions.d.ts +21 -0
  49. package/dist/math/vec2/i32/functions.js +39 -0
  50. package/dist/math/vec2/i32/functions.js.map +1 -0
  51. package/dist/math/vec2/i32/i32.d.ts +4 -0
  52. package/dist/math/vec2/i32/i32.js +3 -0
  53. package/dist/math/vec2/i32/i32.js.map +1 -0
  54. package/dist/math/vec2/i32/layout.d.ts +1 -0
  55. package/dist/math/vec2/i32/layout.js +5 -0
  56. package/dist/math/vec2/i32/layout.js.map +1 -0
  57. package/dist/math/vec2/i32/public.d.ts +3 -0
  58. package/dist/math/vec2/i32/public.js +5 -0
  59. package/dist/math/vec2/i32/public.js.map +1 -0
  60. package/dist/math/vec2/i32/schema.d.ts +12 -0
  61. package/dist/math/vec2/i32/schema.js +10 -0
  62. package/dist/math/vec2/i32/schema.js.map +1 -0
  63. package/dist/math/vec2/index.d.ts +61 -4
  64. package/dist/math/vec2/index.js +56 -1
  65. package/dist/math/vec2/index.js.map +1 -1
  66. package/dist/math/vec2/public.d.ts +5 -3
  67. package/dist/math/vec2/public.js +6 -3
  68. package/dist/math/vec2/public.js.map +1 -1
  69. package/dist/math/vec2/u32/functions.d.ts +20 -0
  70. package/dist/math/vec2/u32/functions.js +58 -0
  71. package/dist/math/vec2/u32/functions.js.map +1 -0
  72. package/dist/math/vec2/u32/layout.d.ts +1 -0
  73. package/dist/math/vec2/u32/layout.js +5 -0
  74. package/dist/math/vec2/u32/layout.js.map +1 -0
  75. package/dist/math/vec2/u32/public.d.ts +3 -0
  76. package/dist/math/vec2/u32/public.js +5 -0
  77. package/dist/math/vec2/u32/public.js.map +1 -0
  78. package/dist/math/vec2/u32/schema.d.ts +12 -0
  79. package/dist/math/vec2/u32/schema.js +10 -0
  80. package/dist/math/vec2/u32/schema.js.map +1 -0
  81. package/dist/math/vec2/u32/u32.d.ts +4 -0
  82. package/dist/math/vec2/u32/u32.js +3 -0
  83. package/dist/math/vec2/u32/u32.js.map +1 -0
  84. package/dist/math/vec3/f32/f32.d.ts +4 -0
  85. package/dist/math/vec3/f32/f32.js +3 -0
  86. package/dist/math/vec3/f32/f32.js.map +1 -0
  87. package/dist/math/vec3/f32/functions.d.ts +59 -0
  88. package/dist/math/vec3/f32/functions.js +139 -0
  89. package/dist/math/vec3/f32/functions.js.map +1 -0
  90. package/dist/math/vec3/f32/layout.d.ts +1 -0
  91. package/dist/math/vec3/f32/layout.js +5 -0
  92. package/dist/math/vec3/f32/layout.js.map +1 -0
  93. package/dist/math/vec3/f32/public.d.ts +3 -0
  94. package/dist/math/vec3/f32/public.js +5 -0
  95. package/dist/math/vec3/f32/public.js.map +1 -0
  96. package/dist/math/vec3/f32/schema.d.ts +11 -0
  97. package/dist/math/vec3/f32/schema.js +10 -0
  98. package/dist/math/vec3/f32/schema.js.map +1 -0
  99. package/dist/math/vec3/i32/functions.d.ts +23 -0
  100. package/dist/math/vec3/i32/functions.js +78 -0
  101. package/dist/math/vec3/i32/functions.js.map +1 -0
  102. package/dist/math/vec3/i32/i32.d.ts +4 -0
  103. package/dist/math/vec3/i32/i32.js +3 -0
  104. package/dist/math/vec3/i32/i32.js.map +1 -0
  105. package/dist/math/vec3/i32/layout.d.ts +1 -0
  106. package/dist/math/vec3/i32/layout.js +5 -0
  107. package/dist/math/vec3/i32/layout.js.map +1 -0
  108. package/dist/math/vec3/i32/public.d.ts +3 -0
  109. package/dist/math/vec3/i32/public.js +5 -0
  110. package/dist/math/vec3/i32/public.js.map +1 -0
  111. package/dist/math/vec3/i32/schema.d.ts +12 -0
  112. package/dist/math/vec3/i32/schema.js +10 -0
  113. package/dist/math/vec3/i32/schema.js.map +1 -0
  114. package/dist/math/vec3/index.d.ts +67 -4
  115. package/dist/math/vec3/index.js +62 -1
  116. package/dist/math/vec3/index.js.map +1 -1
  117. package/dist/math/vec3/public.d.ts +5 -3
  118. package/dist/math/vec3/public.js +6 -3
  119. package/dist/math/vec3/public.js.map +1 -1
  120. package/dist/math/vec3/u32/functions.d.ts +23 -0
  121. package/dist/math/vec3/u32/functions.js +85 -0
  122. package/dist/math/vec3/u32/functions.js.map +1 -0
  123. package/dist/math/vec3/u32/layout.d.ts +1 -0
  124. package/dist/math/vec3/u32/layout.js +5 -0
  125. package/dist/math/vec3/u32/layout.js.map +1 -0
  126. package/dist/math/vec3/u32/public.d.ts +3 -0
  127. package/dist/math/vec3/u32/public.js +5 -0
  128. package/dist/math/vec3/u32/public.js.map +1 -0
  129. package/dist/math/vec3/u32/schema.d.ts +12 -0
  130. package/dist/math/vec3/u32/schema.js +10 -0
  131. package/dist/math/vec3/u32/schema.js.map +1 -0
  132. package/dist/math/vec3/u32/u32.d.ts +4 -0
  133. package/dist/math/vec3/u32/u32.js +3 -0
  134. package/dist/math/vec3/u32/u32.js.map +1 -0
  135. package/dist/math/vec4/f32/f32.d.ts +4 -0
  136. package/dist/math/vec4/f32/f32.js +3 -0
  137. package/dist/math/vec4/f32/f32.js.map +1 -0
  138. package/dist/math/vec4/f32/functions.d.ts +49 -0
  139. package/dist/math/vec4/f32/functions.js +130 -0
  140. package/dist/math/vec4/f32/functions.js.map +1 -0
  141. package/dist/math/vec4/f32/layout.d.ts +1 -0
  142. package/dist/math/vec4/f32/layout.js +5 -0
  143. package/dist/math/vec4/f32/layout.js.map +1 -0
  144. package/dist/math/vec4/f32/public.d.ts +3 -0
  145. package/dist/math/vec4/f32/public.js +5 -0
  146. package/dist/math/vec4/f32/public.js.map +1 -0
  147. package/dist/math/vec4/f32/schema.d.ts +11 -0
  148. package/dist/math/vec4/f32/schema.js +10 -0
  149. package/dist/math/vec4/f32/schema.js.map +1 -0
  150. package/dist/math/vec4/i32/functions.d.ts +23 -0
  151. package/dist/math/vec4/i32/functions.js +91 -0
  152. package/dist/math/vec4/i32/functions.js.map +1 -0
  153. package/dist/math/vec4/i32/i32.d.ts +4 -0
  154. package/dist/math/vec4/i32/i32.js +3 -0
  155. package/dist/math/vec4/i32/i32.js.map +1 -0
  156. package/dist/math/vec4/i32/layout.d.ts +1 -0
  157. package/dist/math/vec4/i32/layout.js +5 -0
  158. package/dist/math/vec4/i32/layout.js.map +1 -0
  159. package/dist/math/vec4/i32/public.d.ts +3 -0
  160. package/dist/math/vec4/i32/public.js +5 -0
  161. package/dist/math/vec4/i32/public.js.map +1 -0
  162. package/dist/math/vec4/i32/schema.d.ts +12 -0
  163. package/dist/math/vec4/i32/schema.js +10 -0
  164. package/dist/math/vec4/i32/schema.js.map +1 -0
  165. package/dist/math/vec4/index.d.ts +60 -4
  166. package/dist/math/vec4/index.js +55 -1
  167. package/dist/math/vec4/index.js.map +1 -1
  168. package/dist/math/vec4/public.d.ts +5 -3
  169. package/dist/math/vec4/public.js +6 -3
  170. package/dist/math/vec4/public.js.map +1 -1
  171. package/dist/math/vec4/u32/functions.d.ts +22 -0
  172. package/dist/math/vec4/u32/functions.js +99 -0
  173. package/dist/math/vec4/u32/functions.js.map +1 -0
  174. package/dist/math/vec4/u32/layout.d.ts +1 -0
  175. package/dist/math/vec4/u32/layout.js +5 -0
  176. package/dist/math/vec4/u32/layout.js.map +1 -0
  177. package/dist/math/vec4/u32/public.d.ts +3 -0
  178. package/dist/math/vec4/u32/public.js +5 -0
  179. package/dist/math/vec4/u32/public.js.map +1 -0
  180. package/dist/math/vec4/u32/schema.d.ts +12 -0
  181. package/dist/math/vec4/u32/schema.js +10 -0
  182. package/dist/math/vec4/u32/schema.js.map +1 -0
  183. package/dist/math/vec4/u32/u32.d.ts +4 -0
  184. package/dist/math/vec4/u32/u32.js +3 -0
  185. package/dist/math/vec4/u32/u32.js.map +1 -0
  186. package/dist/schema/boolean/schema.d.ts +1 -0
  187. package/dist/schema/boolean/schema.js +2 -1
  188. package/dist/schema/boolean/schema.js.map +1 -1
  189. package/dist/schema/from-archetype.d.ts +14 -0
  190. package/dist/schema/from-archetype.js +9 -0
  191. package/dist/schema/from-archetype.js.map +1 -0
  192. package/dist/schema/from-components.d.ts +14 -0
  193. package/dist/schema/from-components.js +9 -0
  194. package/dist/schema/from-components.js.map +1 -0
  195. package/dist/schema/from-components.test.d.ts +1 -0
  196. package/dist/schema/from-components.test.js +49 -0
  197. package/dist/schema/from-components.test.js.map +1 -0
  198. package/dist/schema/from-components.type-test.d.ts +1 -0
  199. package/dist/schema/from-components.type-test.js +40 -0
  200. package/dist/schema/from-components.type-test.js.map +1 -0
  201. package/dist/schema/public.d.ts +2 -0
  202. package/dist/schema/public.js +2 -0
  203. package/dist/schema/public.js.map +1 -1
  204. package/dist/schema/to-type.d.ts +2 -0
  205. package/dist/schema/to-type.js.map +1 -1
  206. package/dist/table/copy-column-to-gpu-buffer.js +10 -2
  207. package/dist/table/copy-column-to-gpu-buffer.js.map +1 -1
  208. package/dist/tsconfig.tsbuildinfo +1 -1
  209. package/dist/typed-buffer/create-boolean-buffer.d.ts +6 -0
  210. package/dist/typed-buffer/create-boolean-buffer.js +83 -0
  211. package/dist/typed-buffer/create-boolean-buffer.js.map +1 -0
  212. package/dist/typed-buffer/create-boolean-buffer.test.d.ts +1 -0
  213. package/dist/typed-buffer/create-boolean-buffer.test.js +159 -0
  214. package/dist/typed-buffer/create-boolean-buffer.test.js.map +1 -0
  215. package/dist/typed-buffer/create-typed-buffer.js +4 -0
  216. package/dist/typed-buffer/create-typed-buffer.js.map +1 -1
  217. package/dist/typed-buffer/index.d.ts +1 -0
  218. package/dist/typed-buffer/index.js +1 -0
  219. package/dist/typed-buffer/index.js.map +1 -1
  220. package/dist/typed-buffer/register-typed-buffer-codecs.js +20 -2
  221. package/dist/typed-buffer/register-typed-buffer-codecs.js.map +1 -1
  222. package/dist/typed-buffer/typed-buffer.d.ts +4 -1
  223. package/dist/typed-buffer/typed-buffer.js +1 -0
  224. package/dist/typed-buffer/typed-buffer.js.map +1 -1
  225. package/dist/types/volume/axis-line-callback.d.ts +14 -0
  226. package/dist/types/volume/axis-line-callback.js +3 -0
  227. package/dist/types/volume/axis-line-callback.js.map +1 -0
  228. package/dist/types/volume/block-callback.d.ts +9 -0
  229. package/dist/types/volume/block-callback.js +3 -0
  230. package/dist/types/volume/block-callback.js.map +1 -0
  231. package/dist/types/volume/block-span.d.ts +9 -0
  232. package/dist/types/volume/block-span.js +3 -0
  233. package/dist/types/volume/block-span.js.map +1 -0
  234. package/dist/types/volume/create-dense/create-dense.d.ts +6 -0
  235. package/dist/types/volume/create-dense/create-dense.js +9 -0
  236. package/dist/types/volume/create-dense/create-dense.js.map +1 -0
  237. package/dist/types/volume/create-dense/create-dense.test.d.ts +1 -0
  238. package/dist/types/volume/create-dense/create-dense.test.js +121 -0
  239. package/dist/types/volume/create-dense/create-dense.test.js.map +1 -0
  240. package/dist/types/volume/create-dense/dense-volume.d.ts +17 -0
  241. package/dist/types/volume/create-dense/dense-volume.js +51 -0
  242. package/dist/types/volume/create-dense/dense-volume.js.map +1 -0
  243. package/dist/types/volume/create-dense/is-dense-volume.d.ts +2 -0
  244. package/dist/types/volume/create-dense/is-dense-volume.js +4 -0
  245. package/dist/types/volume/create-dense/is-dense-volume.js.map +1 -0
  246. package/dist/types/volume/create-dense/register-dense-volume-codecs.d.ts +1 -0
  247. package/dist/types/volume/create-dense/register-dense-volume-codecs.js +33 -0
  248. package/dist/types/volume/create-dense/register-dense-volume-codecs.js.map +1 -0
  249. package/dist/types/volume/create-sparse-block/block-dims.d.ts +35 -0
  250. package/dist/types/volume/create-sparse-block/block-dims.js +93 -0
  251. package/dist/types/volume/create-sparse-block/block-dims.js.map +1 -0
  252. package/dist/types/volume/create-sparse-block/block-key.d.ts +9 -0
  253. package/dist/types/volume/create-sparse-block/block-key.js +23 -0
  254. package/dist/types/volume/create-sparse-block/block-key.js.map +1 -0
  255. package/dist/types/volume/create-sparse-block/create-sparse-block.d.ts +6 -0
  256. package/dist/types/volume/create-sparse-block/create-sparse-block.js +9 -0
  257. package/dist/types/volume/create-sparse-block/create-sparse-block.js.map +1 -0
  258. package/dist/types/volume/create-sparse-block/create-sparse-block.test.d.ts +1 -0
  259. package/dist/types/volume/create-sparse-block/create-sparse-block.test.js +287 -0
  260. package/dist/types/volume/create-sparse-block/create-sparse-block.test.js.map +1 -0
  261. package/dist/types/volume/create-sparse-block/is-sparse-block-volume.d.ts +2 -0
  262. package/dist/types/volume/create-sparse-block/is-sparse-block-volume.js +4 -0
  263. package/dist/types/volume/create-sparse-block/is-sparse-block-volume.js.map +1 -0
  264. package/dist/types/volume/create-sparse-block/iterate-sparse-block-axis.d.ts +19 -0
  265. package/dist/types/volume/create-sparse-block/iterate-sparse-block-axis.js +160 -0
  266. package/dist/types/volume/create-sparse-block/iterate-sparse-block-axis.js.map +1 -0
  267. package/dist/types/volume/create-sparse-block/pack-block-key.d.ts +1 -0
  268. package/dist/types/volume/create-sparse-block/pack-block-key.js +3 -0
  269. package/dist/types/volume/create-sparse-block/pack-block-key.js.map +1 -0
  270. package/dist/types/volume/create-sparse-block/register-sparse-block-volume-codecs.d.ts +1 -0
  271. package/dist/types/volume/create-sparse-block/register-sparse-block-volume-codecs.js +37 -0
  272. package/dist/types/volume/create-sparse-block/register-sparse-block-volume-codecs.js.map +1 -0
  273. package/dist/types/volume/create-sparse-block/sparse-block-volume.d.ts +29 -0
  274. package/dist/types/volume/create-sparse-block/sparse-block-volume.js +133 -0
  275. package/dist/types/volume/create-sparse-block/sparse-block-volume.js.map +1 -0
  276. package/dist/types/volume/create-sparse-block/unpack-block-key.d.ts +5 -0
  277. package/dist/types/volume/create-sparse-block/unpack-block-key.js +7 -0
  278. package/dist/types/volume/create-sparse-block/unpack-block-key.js.map +1 -0
  279. package/dist/types/volume/get-dense-index.d.ts +2 -0
  280. package/dist/types/volume/get-dense-index.js +6 -0
  281. package/dist/types/volume/get-dense-index.js.map +1 -0
  282. package/dist/types/volume/get-dense-index.test.d.ts +1 -0
  283. package/dist/types/volume/get-dense-index.test.js +17 -0
  284. package/dist/types/volume/get-dense-index.test.js.map +1 -0
  285. package/dist/types/volume/is-in-bounds.d.ts +2 -0
  286. package/dist/types/volume/is-in-bounds.js +6 -0
  287. package/dist/types/volume/is-in-bounds.js.map +1 -0
  288. package/dist/types/volume/is-in-bounds.test.d.ts +1 -0
  289. package/dist/types/volume/is-in-bounds.test.js +12 -0
  290. package/dist/types/volume/is-in-bounds.test.js.map +1 -0
  291. package/dist/types/volume/iterate-axis.d.ts +7 -0
  292. package/dist/types/volume/iterate-axis.js +58 -0
  293. package/dist/types/volume/iterate-axis.js.map +1 -0
  294. package/dist/types/volume/iterate-sparse-block-axis.test.d.ts +1 -0
  295. package/dist/types/volume/iterate-sparse-block-axis.test.js +11 -0
  296. package/dist/types/volume/iterate-sparse-block-axis.test.js.map +1 -0
  297. package/dist/types/volume/iterate-sparse-block.benchmark.test.d.ts +1 -0
  298. package/dist/types/volume/iterate-sparse-block.benchmark.test.js +80 -0
  299. package/dist/types/volume/iterate-sparse-block.benchmark.test.js.map +1 -0
  300. package/dist/types/volume/iterate-test-helpers.d.ts +14 -0
  301. package/dist/types/volume/iterate-test-helpers.js +41 -0
  302. package/dist/types/volume/iterate-test-helpers.js.map +1 -0
  303. package/dist/types/volume/public.d.ts +7 -0
  304. package/dist/types/volume/public.js +6 -0
  305. package/dist/types/volume/public.js.map +1 -0
  306. package/dist/types/volume/sparse-block-iterate-benchmark.d.ts +49 -0
  307. package/dist/types/volume/sparse-block-iterate-benchmark.js +131 -0
  308. package/dist/types/volume/sparse-block-iterate-benchmark.js.map +1 -0
  309. package/dist/types/volume/volume.d.ts +13 -0
  310. package/dist/types/volume/volume.js +3 -0
  311. package/dist/types/volume/volume.js.map +1 -0
  312. package/package.json +1 -1
  313. package/references/data-lit/package.json +1 -1
  314. package/references/data-lit-tictactoe/package.json +1 -1
  315. package/references/data-react/package.json +1 -1
  316. package/references/data-react-hello/package.json +1 -1
  317. package/references/data-react-pixie/package.json +1 -1
@@ -0,0 +1,4 @@
1
+ import { Schema } from "../../../schema/index.js";
2
+ import { schema } from "./schema.js";
3
+ export type U32 = Schema.ToType<typeof schema>;
4
+ export * as U32 from "./public.js";
@@ -0,0 +1,3 @@
1
+ // © 2026 Adobe. MIT License. See /LICENSE for details.
2
+ export * as U32 from "./public.js";
3
+ //# sourceMappingURL=u32.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"u32.js","sourceRoot":"","sources":["../../../../src/math/vec2/u32/u32.ts"],"names":[],"mappings":"AAAA,uDAAuD;AAOvD,OAAO,KAAK,GAAG,MAAM,aAAa,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { Schema } from "../../../schema/index.js";
2
+ import { schema } from "./schema.js";
3
+ export type F32 = Schema.ToType<typeof schema>;
4
+ export * as F32 from "./public.js";
@@ -0,0 +1,3 @@
1
+ // © 2026 Adobe. MIT License. See /LICENSE for details.
2
+ export * as F32 from "./public.js";
3
+ //# sourceMappingURL=f32.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"f32.js","sourceRoot":"","sources":["../../../../src/math/vec3/f32/f32.ts"],"names":[],"mappings":"AAAA,uDAAuD;AAOvD,OAAO,KAAK,GAAG,MAAM,aAAa,CAAC"}
@@ -0,0 +1,59 @@
1
+ import type { F32 } from "./f32.js";
2
+ export declare const zero: F32;
3
+ export declare const one: F32;
4
+ export declare const abs: ([x, y, z]: F32) => F32;
5
+ export declare const ceil: ([x, y, z]: F32) => F32;
6
+ export declare const floor: ([x, y, z]: F32) => F32;
7
+ export declare const round: ([x, y, z]: F32) => F32;
8
+ export declare const trunc: ([x, y, z]: F32) => F32;
9
+ export declare const min: ([x1, y1, z1]: F32, [x2, y2, z2]: F32) => F32;
10
+ export declare const max: ([x1, y1, z1]: F32, [x2, y2, z2]: F32) => F32;
11
+ export declare const clamp: (v: F32, minVec: F32, maxVec: F32) => F32;
12
+ export declare const mix: ([x1, y1, z1]: F32, [x2, y2, z2]: F32, t: number) => F32;
13
+ export declare const step: ([edge1, edge2, edge3]: F32, [x, y, z]: F32) => F32;
14
+ export declare const smoothstep: ([e0x, e0y, e0z]: F32, [e1x, e1y, e1z]: F32, [x, y, z]: F32) => F32;
15
+ export declare const random: () => F32;
16
+ export declare const lengthSquared: ([x, y, z]: F32) => number;
17
+ export declare const length: ([x, y, z]: F32) => number;
18
+ export declare const distance: (a: F32, b: F32) => number;
19
+ export declare const distanceSquared: (a: F32, b: F32) => number;
20
+ export declare const dot: ([x1, y1, z1]: F32, [x2, y2, z2]: F32) => number;
21
+ export declare const cross: ([x1, y1, z1]: F32, [x2, y2, z2]: F32) => F32;
22
+ export declare const normalize: (v: F32) => F32;
23
+ export declare const faceforward: (n: F32, i: F32, nref: F32) => F32;
24
+ export declare const reflect: (i: F32, n: F32) => F32;
25
+ export declare const refract: (i: F32, n: F32, eta: number) => F32;
26
+ export declare const sin: ([x, y, z]: F32) => F32;
27
+ export declare const cos: ([x, y, z]: F32) => F32;
28
+ export declare const tan: ([x, y, z]: F32) => F32;
29
+ export declare const asin: ([x, y, z]: F32) => F32;
30
+ export declare const acos: ([x, y, z]: F32) => F32;
31
+ export declare const atan: ([x, y, z]: F32) => F32;
32
+ export declare const sinh: ([x, y, z]: F32) => F32;
33
+ export declare const cosh: ([x, y, z]: F32) => F32;
34
+ export declare const tanh: ([x, y, z]: F32) => F32;
35
+ export declare const asinh: ([x, y, z]: F32) => F32;
36
+ export declare const acosh: ([x, y, z]: F32) => F32;
37
+ export declare const atanh: ([x, y, z]: F32) => F32;
38
+ export declare const sign: ([x, y, z]: F32) => F32;
39
+ export declare const fract: ([x, y, z]: F32) => F32;
40
+ export declare const mod: ([x, y, z]: F32, m: number) => F32;
41
+ export declare const modf: ([x, y, z]: F32) => {
42
+ fract: F32;
43
+ whole: F32;
44
+ };
45
+ export declare const pow: ([x1, y1, z1]: F32, [x2, y2, z2]: F32) => F32;
46
+ export declare const exp: ([x, y, z]: F32) => F32;
47
+ export declare const exp2: ([x, y, z]: F32) => F32;
48
+ export declare const log: ([x, y, z]: F32) => F32;
49
+ export declare const log2: ([x, y, z]: F32) => F32;
50
+ export declare const sqrt: ([x, y, z]: F32) => F32;
51
+ export declare const add: ([x1, y1, z1]: F32, [x2, y2, z2]: F32) => F32;
52
+ export declare const subtract: ([x1, y1, z1]: F32, [x2, y2, z2]: F32) => F32;
53
+ /**
54
+ * Performs a component-wise multiplication of two vectors.
55
+ */
56
+ export declare const multiply: ([x1, y1, z1]: F32, [x2, y2, z2]: F32) => F32;
57
+ export declare const scale: ([x, y, z]: F32, s: number) => F32;
58
+ export declare const negate: ([x, y, z]: F32) => F32;
59
+ export declare const equals: (a: F32, b: F32) => boolean;
@@ -0,0 +1,139 @@
1
+ // © 2026 Adobe. MIT License. See /LICENSE for details.
2
+ export const zero = [0, 0, 0];
3
+ export const one = [1, 1, 1];
4
+ // Mathematical Operations
5
+ export const abs = ([x, y, z]) => [Math.abs(x), Math.abs(y), Math.abs(z)];
6
+ export const ceil = ([x, y, z]) => [Math.ceil(x), Math.ceil(y), Math.ceil(z)];
7
+ export const floor = ([x, y, z]) => [Math.floor(x), Math.floor(y), Math.floor(z)];
8
+ export const round = ([x, y, z]) => [Math.round(x), Math.round(y), Math.round(z)];
9
+ export const trunc = ([x, y, z]) => [Math.trunc(x), Math.trunc(y), Math.trunc(z)];
10
+ export const min = ([x1, y1, z1], [x2, y2, z2]) => [
11
+ Math.min(x1, x2),
12
+ Math.min(y1, y2),
13
+ Math.min(z1, z2)
14
+ ];
15
+ export const max = ([x1, y1, z1], [x2, y2, z2]) => [
16
+ Math.max(x1, x2),
17
+ Math.max(y1, y2),
18
+ Math.max(z1, z2)
19
+ ];
20
+ export const clamp = (v, minVec, maxVec) => min(max(v, minVec), maxVec);
21
+ export const mix = ([x1, y1, z1], [x2, y2, z2], t) => [
22
+ x1 * (1 - t) + x2 * t,
23
+ y1 * (1 - t) + y2 * t,
24
+ z1 * (1 - t) + z2 * t
25
+ ];
26
+ export const step = ([edge1, edge2, edge3], [x, y, z]) => [
27
+ x < edge1 ? 0 : 1,
28
+ y < edge2 ? 0 : 1,
29
+ z < edge3 ? 0 : 1
30
+ ];
31
+ export const smoothstep = ([e0x, e0y, e0z], [e1x, e1y, e1z], [x, y, z]) => {
32
+ const tx = Math.max(0, Math.min(1, (x - e0x) / (e1x - e0x)));
33
+ const ty = Math.max(0, Math.min(1, (y - e0y) / (e1y - e0y)));
34
+ const tz = Math.max(0, Math.min(1, (z - e0z) / (e1z - e0z)));
35
+ return [
36
+ tx * tx * (3 - 2 * tx),
37
+ ty * ty * (3 - 2 * ty),
38
+ tz * tz * (3 - 2 * tz)
39
+ ];
40
+ };
41
+ export const random = () => {
42
+ return [Math.random(), Math.random(), Math.random()];
43
+ };
44
+ // Geometric Functions
45
+ export const lengthSquared = ([x, y, z]) => x * x + y * y + z * z;
46
+ export const length = ([x, y, z]) => Math.sqrt(x * x + y * y + z * z);
47
+ export const distance = (a, b) => length(subtract(b, a));
48
+ export const distanceSquared = (a, b) => {
49
+ const dx = b[0] - a[0];
50
+ const dy = b[1] - a[1];
51
+ const dz = b[2] - a[2];
52
+ return dx * dx + dy * dy + dz * dz;
53
+ };
54
+ export const dot = ([x1, y1, z1], [x2, y2, z2]) => x1 * x2 + y1 * y2 + z1 * z2;
55
+ export const cross = ([x1, y1, z1], [x2, y2, z2]) => [
56
+ y1 * z2 - z1 * y2,
57
+ z1 * x2 - x1 * z2,
58
+ x1 * y2 - y1 * x2
59
+ ];
60
+ export const normalize = (v) => {
61
+ const len = length(v);
62
+ return len === 0 ? [0, 0, 0] : scale(v, 1 / len);
63
+ };
64
+ export const faceforward = (n, i, nref) => dot(nref, i) < 0 ? n : negate(n);
65
+ export const reflect = (i, n) => {
66
+ const dot2 = dot(n, i) * 2;
67
+ return subtract(i, scale(n, dot2));
68
+ };
69
+ export const refract = (i, n, eta) => {
70
+ const dotProduct = dot(n, i);
71
+ const k = 1.0 - eta * eta * (1.0 - dotProduct * dotProduct);
72
+ if (k < 0.0) {
73
+ return [0, 0, 0];
74
+ }
75
+ const scaleFactor = eta * dotProduct + Math.sqrt(k);
76
+ return subtract(scale(i, eta), scale(n, scaleFactor));
77
+ };
78
+ // Trigonometric Functions
79
+ export const sin = ([x, y, z]) => [Math.sin(x), Math.sin(y), Math.sin(z)];
80
+ export const cos = ([x, y, z]) => [Math.cos(x), Math.cos(y), Math.cos(z)];
81
+ export const tan = ([x, y, z]) => [Math.tan(x), Math.tan(y), Math.tan(z)];
82
+ export const asin = ([x, y, z]) => [Math.asin(x), Math.asin(y), Math.asin(z)];
83
+ export const acos = ([x, y, z]) => [Math.acos(x), Math.acos(y), Math.acos(z)];
84
+ export const atan = ([x, y, z]) => [Math.atan(x), Math.atan(y), Math.atan(z)];
85
+ export const sinh = ([x, y, z]) => [Math.sinh(x), Math.sinh(y), Math.sinh(z)];
86
+ export const cosh = ([x, y, z]) => [Math.cosh(x), Math.cosh(y), Math.cosh(z)];
87
+ export const tanh = ([x, y, z]) => [Math.tanh(x), Math.tanh(y), Math.tanh(z)];
88
+ export const asinh = ([x, y, z]) => [Math.asinh(x), Math.asinh(y), Math.asinh(z)];
89
+ export const acosh = ([x, y, z]) => [Math.acosh(x), Math.acosh(y), Math.acosh(z)];
90
+ export const atanh = ([x, y, z]) => [Math.atanh(x), Math.atanh(y), Math.atanh(z)];
91
+ // Common Functions
92
+ export const sign = ([x, y, z]) => [Math.sign(x), Math.sign(y), Math.sign(z)];
93
+ export const fract = ([x, y, z]) => [
94
+ x - Math.floor(x),
95
+ y - Math.floor(y),
96
+ z - Math.floor(z)
97
+ ];
98
+ export const mod = ([x, y, z], m) => [
99
+ ((x % m) + m) % m,
100
+ ((y % m) + m) % m,
101
+ ((z % m) + m) % m
102
+ ];
103
+ export const modf = ([x, y, z]) => ({
104
+ whole: [Math.trunc(x), Math.trunc(y), Math.trunc(z)],
105
+ fract: [x - Math.trunc(x), y - Math.trunc(y), z - Math.trunc(z)]
106
+ });
107
+ export const pow = ([x1, y1, z1], [x2, y2, z2]) => [
108
+ Math.pow(x1, x2),
109
+ Math.pow(y1, y2),
110
+ Math.pow(z1, z2)
111
+ ];
112
+ export const exp = ([x, y, z]) => [Math.exp(x), Math.exp(y), Math.exp(z)];
113
+ export const exp2 = ([x, y, z]) => [Math.pow(2, x), Math.pow(2, y), Math.pow(2, z)];
114
+ export const log = ([x, y, z]) => [Math.log(x), Math.log(y), Math.log(z)];
115
+ export const log2 = ([x, y, z]) => [Math.log2(x), Math.log2(y), Math.log2(z)];
116
+ export const sqrt = ([x, y, z]) => [Math.sqrt(x), Math.sqrt(y), Math.sqrt(z)];
117
+ // Helper functions needed by some of the above
118
+ export const add = ([x1, y1, z1], [x2, y2, z2]) => [
119
+ x1 + x2,
120
+ y1 + y2,
121
+ z1 + z2
122
+ ];
123
+ export const subtract = ([x1, y1, z1], [x2, y2, z2]) => [
124
+ x1 - x2,
125
+ y1 - y2,
126
+ z1 - z2
127
+ ];
128
+ /**
129
+ * Performs a component-wise multiplication of two vectors.
130
+ */
131
+ export const multiply = ([x1, y1, z1], [x2, y2, z2]) => [
132
+ x1 * x2,
133
+ y1 * y2,
134
+ z1 * z2
135
+ ];
136
+ export const scale = ([x, y, z], s) => [x * s, y * s, z * s];
137
+ export const negate = ([x, y, z]) => [-x, -y, -z];
138
+ export const equals = (a, b) => a[0] === b[0] && a[1] === b[1] && a[2] === b[2];
139
+ //# sourceMappingURL=functions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"functions.js","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AE,GAAG,EAAE;IACP,EAAE,GAAG,EAAE;CACV,CAAC;AACF,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAM,EAAE,CAAS,EAAO,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;AAC/E,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAM,EAAO,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AAE5D,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,CAAM,EAAE,CAAM,EAAW,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ export declare const layout: import("../../../typed-buffer/index.js").StructLayout;
@@ -0,0 +1,5 @@
1
+ // © 2026 Adobe. MIT License. See /LICENSE for details.
2
+ import { getStructLayout } from "../../../typed-buffer/index.js";
3
+ import { schema } from "./schema.js";
4
+ export const layout = getStructLayout(schema);
5
+ //# sourceMappingURL=layout.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layout.js","sourceRoot":"","sources":["../../../../src/math/vec3/f32/layout.ts"],"names":[],"mappings":"AAAA,uDAAuD;AAEvD,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,MAAM,CAAC,MAAM,MAAM,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from "./functions.js";
2
+ export * from "./layout.js";
3
+ export * from "./schema.js";
@@ -0,0 +1,5 @@
1
+ // © 2026 Adobe. MIT License. See /LICENSE for details.
2
+ export * from "./functions.js";
3
+ export * from "./layout.js";
4
+ export * from "./schema.js";
5
+ //# sourceMappingURL=public.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"public.js","sourceRoot":"","sources":["../../../../src/math/vec3/f32/public.ts"],"names":[],"mappings":"AAAA,uDAAuD;AAEvD,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC"}
@@ -0,0 +1,11 @@
1
+ export declare const schema: {
2
+ readonly type: "array";
3
+ readonly items: {
4
+ readonly type: "number";
5
+ readonly precision: 1;
6
+ readonly default: number;
7
+ };
8
+ readonly minItems: 3;
9
+ readonly maxItems: 3;
10
+ readonly default: readonly [0, 0, 0];
11
+ };
@@ -0,0 +1,10 @@
1
+ // © 2026 Adobe. MIT License. See /LICENSE for details.
2
+ import { F32 } from "../../f32/index.js";
3
+ export const schema = {
4
+ type: 'array',
5
+ items: F32.schema,
6
+ minItems: 3,
7
+ maxItems: 3,
8
+ default: [0, 0, 0],
9
+ };
10
+ //# sourceMappingURL=schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/math/vec3/f32/schema.ts"],"names":[],"mappings":"AAAA,uDAAuD;AAEvD,OAAO,EAAE,GAAG,EAAE,MAAM,oBAAoB,CAAC;AAGzC,MAAM,CAAC,MAAM,MAAM,GAAG;IAClB,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,GAAG,CAAC,MAAM;IACjB,QAAQ,EAAE,CAAC;IACX,QAAQ,EAAE,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;CACK,CAAC"}
@@ -0,0 +1,23 @@
1
+ import type { I32 as Vec3_I32 } from "./i32.js";
2
+ export declare const zero: Vec3_I32;
3
+ export declare const one: Vec3_I32;
4
+ export declare const abs: ([x, y, z]: Vec3_I32) => Vec3_I32;
5
+ export declare const add: ([x1, y1, z1]: Vec3_I32, [x2, y2, z2]: Vec3_I32) => Vec3_I32;
6
+ export declare const subtract: ([x1, y1, z1]: Vec3_I32, [x2, y2, z2]: Vec3_I32) => Vec3_I32;
7
+ export declare const multiply: ([x1, y1, z1]: Vec3_I32, [x2, y2, z2]: Vec3_I32) => Vec3_I32;
8
+ export declare const scale: ([x, y, z]: Vec3_I32, s: number) => Vec3_I32;
9
+ export declare const negate: ([x, y, z]: Vec3_I32) => Vec3_I32;
10
+ export declare const min: ([x1, y1, z1]: Vec3_I32, [x2, y2, z2]: Vec3_I32) => Vec3_I32;
11
+ export declare const max: ([x1, y1, z1]: Vec3_I32, [x2, y2, z2]: Vec3_I32) => Vec3_I32;
12
+ export declare const clamp: (v: Vec3_I32, minVec: Vec3_I32, maxVec: Vec3_I32) => Vec3_I32;
13
+ export declare const equals: (a: Vec3_I32, b: Vec3_I32) => boolean;
14
+ export declare const bitwiseAnd: ([x1, y1, z1]: Vec3_I32, [x2, y2, z2]: Vec3_I32) => Vec3_I32;
15
+ export declare const bitwiseOr: ([x1, y1, z1]: Vec3_I32, [x2, y2, z2]: Vec3_I32) => Vec3_I32;
16
+ export declare const bitwiseXor: ([x1, y1, z1]: Vec3_I32, [x2, y2, z2]: Vec3_I32) => Vec3_I32;
17
+ export declare const bitwiseNot: ([x, y, z]: Vec3_I32) => Vec3_I32;
18
+ export declare const shiftLeft: ([x, y, z]: Vec3_I32, s: number) => Vec3_I32;
19
+ export declare const shiftRight: ([x, y, z]: Vec3_I32, s: number) => Vec3_I32;
20
+ export declare const countLeadingZeros: ([x, y, z]: Vec3_I32) => Vec3_I32;
21
+ export declare const countTrailingZeros: ([x, y, z]: Vec3_I32) => Vec3_I32;
22
+ export declare const countOneBits: ([x, y, z]: Vec3_I32) => Vec3_I32;
23
+ export declare const reverseBits: ([x, y, z]: Vec3_I32) => Vec3_I32;
@@ -0,0 +1,78 @@
1
+ // © 2026 Adobe. MIT License. See /LICENSE for details.
2
+ import { I32 } from "../../i32/index.js";
3
+ import { U32 } from "../../u32/index.js";
4
+ export const zero = [0, 0, 0];
5
+ export const one = [1, 1, 1];
6
+ export const abs = ([x, y, z]) => [Math.abs(x), Math.abs(y), Math.abs(z)];
7
+ export const add = ([x1, y1, z1], [x2, y2, z2]) => [
8
+ x1 + x2,
9
+ y1 + y2,
10
+ z1 + z2,
11
+ ];
12
+ export const subtract = ([x1, y1, z1], [x2, y2, z2]) => [
13
+ x1 - x2,
14
+ y1 - y2,
15
+ z1 - z2,
16
+ ];
17
+ export const multiply = ([x1, y1, z1], [x2, y2, z2]) => [
18
+ x1 * x2,
19
+ y1 * y2,
20
+ z1 * z2,
21
+ ];
22
+ export const scale = ([x, y, z], s) => [x * s, y * s, z * s];
23
+ export const negate = ([x, y, z]) => [-x, -y, -z];
24
+ export const min = ([x1, y1, z1], [x2, y2, z2]) => [
25
+ Math.min(x1, x2),
26
+ Math.min(y1, y2),
27
+ Math.min(z1, z2),
28
+ ];
29
+ export const max = ([x1, y1, z1], [x2, y2, z2]) => [
30
+ Math.max(x1, x2),
31
+ Math.max(y1, y2),
32
+ Math.max(z1, z2),
33
+ ];
34
+ export const clamp = (v, minVec, maxVec) => min(max(v, minVec), maxVec);
35
+ export const equals = (a, b) => a[0] === b[0] && a[1] === b[1] && a[2] === b[2];
36
+ export const bitwiseAnd = ([x1, y1, z1], [x2, y2, z2]) => [
37
+ x1 & x2,
38
+ y1 & y2,
39
+ z1 & z2,
40
+ ];
41
+ export const bitwiseOr = ([x1, y1, z1], [x2, y2, z2]) => [
42
+ x1 | x2,
43
+ y1 | y2,
44
+ z1 | z2,
45
+ ];
46
+ export const bitwiseXor = ([x1, y1, z1], [x2, y2, z2]) => [
47
+ x1 ^ x2,
48
+ y1 ^ y2,
49
+ z1 ^ z2,
50
+ ];
51
+ export const bitwiseNot = ([x, y, z]) => [~x, ~y, ~z];
52
+ export const shiftLeft = ([x, y, z], s) => [x << s, y << s, z << s];
53
+ export const shiftRight = ([x, y, z], s) => [
54
+ I32.shiftRight(x, s),
55
+ I32.shiftRight(y, s),
56
+ I32.shiftRight(z, s),
57
+ ];
58
+ export const countLeadingZeros = ([x, y, z]) => [
59
+ U32.countLeadingZeros(x),
60
+ U32.countLeadingZeros(y),
61
+ U32.countLeadingZeros(z),
62
+ ];
63
+ export const countTrailingZeros = ([x, y, z]) => [
64
+ U32.countTrailingZeros(x),
65
+ U32.countTrailingZeros(y),
66
+ U32.countTrailingZeros(z),
67
+ ];
68
+ export const countOneBits = ([x, y, z]) => [
69
+ U32.countOneBits(x),
70
+ U32.countOneBits(y),
71
+ U32.countOneBits(z),
72
+ ];
73
+ export const reverseBits = ([x, y, z]) => [
74
+ U32.reverseBits(x),
75
+ U32.reverseBits(y),
76
+ U32.reverseBits(z),
77
+ ];
78
+ //# sourceMappingURL=functions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"functions.js","sourceRoot":"","sources":["../../../../src/math/vec3/i32/functions.ts"],"names":[],"mappings":"AAAA,uDAAuD;AAGvD,OAAO,EAAE,GAAG,EAAE,MAAM,oBAAoB,CAAC;AACzC,OAAO,EAAE,GAAG,EAAE,MAAM,oBAAoB,CAAC;AAEzC,MAAM,CAAC,MAAM,IAAI,GAAa,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AACxC,MAAM,CAAC,MAAM,GAAG,GAAa,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AAEvC,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAW,EAAY,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;AAE9F,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC,CAAC,EAA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AC,MAAM,kBAAkB,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAW,EAAY,EAAE,CAAC;IACjE,GAAG,CAAC,kBAAkB,CAAC,CAAC,CAAC;IACzB,GAAG,CAAC,kBAAkB,CAAC,CAAC,CAAC;IACzB,GAAG,CAAC,kBAAkB,CAAC,CAAC,CAAC;CAC5B,CAAC;AACF,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAW,EAAY,EAAE,CAAC;IAC3D,GAAG,CAAC,YAAY,CAAC,CAAC,CAAC;IACnB,GAAG,CAAC,YAAY,CAAC,CAAC,CAAC;IACnB,GAAG,CAAC,YAAY,CAAC,CAAC,CAAC;CACtB,CAAC;AACF,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAW,EAAY,EAAE,CAAC;IAC1D,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC;IAClB,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC;IAClB,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC;CACrB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { Schema } from "../../../schema/index.js";
2
+ import { schema } from "./schema.js";
3
+ export type I32 = Schema.ToType<typeof schema>;
4
+ export * as I32 from "./public.js";
@@ -0,0 +1,3 @@
1
+ // © 2026 Adobe. MIT License. See /LICENSE for details.
2
+ export * as I32 from "./public.js";
3
+ //# sourceMappingURL=i32.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i32.js","sourceRoot":"","sources":["../../../../src/math/vec3/i32/i32.ts"],"names":[],"mappings":"AAAA,uDAAuD;AAOvD,OAAO,KAAK,GAAG,MAAM,aAAa,CAAC"}
@@ -0,0 +1 @@
1
+ export declare const layout: import("../../../typed-buffer/index.js").StructLayout;
@@ -0,0 +1,5 @@
1
+ // © 2026 Adobe. MIT License. See /LICENSE for details.
2
+ import { getStructLayout } from "../../../typed-buffer/index.js";
3
+ import { schema } from "./schema.js";
4
+ export const layout = getStructLayout(schema);
5
+ //# sourceMappingURL=layout.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layout.js","sourceRoot":"","sources":["../../../../src/math/vec3/i32/layout.ts"],"names":[],"mappings":"AAAA,uDAAuD;AAEvD,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,MAAM,CAAC,MAAM,MAAM,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from "./functions.js";
2
+ export * from "./layout.js";
3
+ export * from "./schema.js";
@@ -0,0 +1,5 @@
1
+ // © 2026 Adobe. MIT License. See /LICENSE for details.
2
+ export * from "./functions.js";
3
+ export * from "./layout.js";
4
+ export * from "./schema.js";
5
+ //# sourceMappingURL=public.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"public.js","sourceRoot":"","sources":["../../../../src/math/vec3/i32/public.ts"],"names":[],"mappings":"AAAA,uDAAuD;AAEvD,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC"}
@@ -0,0 +1,12 @@
1
+ export declare const schema: {
2
+ readonly type: "array";
3
+ readonly items: {
4
+ readonly type: "integer";
5
+ readonly minimum: -2147483648;
6
+ readonly maximum: 2147483647;
7
+ readonly default: number;
8
+ };
9
+ readonly minItems: 3;
10
+ readonly maxItems: 3;
11
+ readonly default: readonly [0, 0, 0];
12
+ };
@@ -0,0 +1,10 @@
1
+ // © 2026 Adobe. MIT License. See /LICENSE for details.
2
+ import { I32 } from "../../i32/index.js";
3
+ export const schema = {
4
+ type: 'array',
5
+ items: I32.schema,
6
+ minItems: 3,
7
+ maxItems: 3,
8
+ default: [0, 0, 0],
9
+ };
10
+ //# sourceMappingURL=schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/math/vec3/i32/schema.ts"],"names":[],"mappings":"AAAA,uDAAuD;AAEvD,OAAO,EAAE,GAAG,EAAE,MAAM,oBAAoB,CAAC;AAGzC,MAAM,CAAC,MAAM,MAAM,GAAG;IAClB,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,GAAG,CAAC,MAAM;IACjB,QAAQ,EAAE,CAAC;IACX,QAAQ,EAAE,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;CACK,CAAC"}
@@ -1,4 +1,67 @@
1
- import { Schema } from "../../schema/index.js";
2
- import { schema } from "./schema.js";
3
- export type Vec3 = Schema.ToType<typeof schema>;
4
- export * as Vec3 from "./public.js";
1
+ import type { F32 as Vec3F32 } from "./f32/f32.js";
2
+ import type { I32 as Vec3I32 } from "./i32/i32.js";
3
+ import type { U32 as Vec3U32 } from "./u32/u32.js";
4
+ import * as Public from "./public.js";
5
+ export type Vec3 = Vec3F32;
6
+ export declare namespace Vec3 {
7
+ type F32 = Vec3F32;
8
+ type U32 = Vec3U32;
9
+ type I32 = Vec3I32;
10
+ export import F32 = Public.F32;
11
+ export import U32 = Public.U32;
12
+ export import I32 = Public.I32;
13
+ export import schema = Public.schema;
14
+ export import layout = Public.layout;
15
+ export import abs = Public.abs;
16
+ export import acos = Public.acos;
17
+ export import acosh = Public.acosh;
18
+ export import add = Public.add;
19
+ export import asin = Public.asin;
20
+ export import asinh = Public.asinh;
21
+ export import atan = Public.atan;
22
+ export import atanh = Public.atanh;
23
+ export import ceil = Public.ceil;
24
+ export import clamp = Public.clamp;
25
+ export import cos = Public.cos;
26
+ export import cosh = Public.cosh;
27
+ export import cross = Public.cross;
28
+ export import distance = Public.distance;
29
+ export import distanceSquared = Public.distanceSquared;
30
+ export import dot = Public.dot;
31
+ export import equals = Public.equals;
32
+ export import exp = Public.exp;
33
+ export import exp2 = Public.exp2;
34
+ export import faceforward = Public.faceforward;
35
+ export import floor = Public.floor;
36
+ export import fract = Public.fract;
37
+ export import length = Public.length;
38
+ export import lengthSquared = Public.lengthSquared;
39
+ export import log = Public.log;
40
+ export import log2 = Public.log2;
41
+ export import max = Public.max;
42
+ export import min = Public.min;
43
+ export import mix = Public.mix;
44
+ export import mod = Public.mod;
45
+ export import modf = Public.modf;
46
+ export import multiply = Public.multiply;
47
+ export import negate = Public.negate;
48
+ export import normalize = Public.normalize;
49
+ export import one = Public.one;
50
+ export import pow = Public.pow;
51
+ export import random = Public.random;
52
+ export import reflect = Public.reflect;
53
+ export import refract = Public.refract;
54
+ export import round = Public.round;
55
+ export import scale = Public.scale;
56
+ export import sign = Public.sign;
57
+ export import sin = Public.sin;
58
+ export import sinh = Public.sinh;
59
+ export import smoothstep = Public.smoothstep;
60
+ export import sqrt = Public.sqrt;
61
+ export import step = Public.step;
62
+ export import subtract = Public.subtract;
63
+ export import tan = Public.tan;
64
+ export import tanh = Public.tanh;
65
+ export import trunc = Public.trunc;
66
+ export import zero = Public.zero;
67
+ }
@@ -1,3 +1,64 @@
1
1
  // © 2026 Adobe. MIT License. See /LICENSE for details.
2
- export * as Vec3 from "./public.js";
2
+ import * as Public from "./public.js";
3
+ export var Vec3;
4
+ (function (Vec3) {
5
+ Vec3.F32 = Public.F32;
6
+ Vec3.U32 = Public.U32;
7
+ Vec3.I32 = Public.I32;
8
+ // Backwards compatibility: Vec3 is synonymous with Vec3.F32
9
+ Vec3.schema = Public.schema;
10
+ Vec3.layout = Public.layout;
11
+ Vec3.abs = Public.abs;
12
+ Vec3.acos = Public.acos;
13
+ Vec3.acosh = Public.acosh;
14
+ Vec3.add = Public.add;
15
+ Vec3.asin = Public.asin;
16
+ Vec3.asinh = Public.asinh;
17
+ Vec3.atan = Public.atan;
18
+ Vec3.atanh = Public.atanh;
19
+ Vec3.ceil = Public.ceil;
20
+ Vec3.clamp = Public.clamp;
21
+ Vec3.cos = Public.cos;
22
+ Vec3.cosh = Public.cosh;
23
+ Vec3.cross = Public.cross;
24
+ Vec3.distance = Public.distance;
25
+ Vec3.distanceSquared = Public.distanceSquared;
26
+ Vec3.dot = Public.dot;
27
+ Vec3.equals = Public.equals;
28
+ Vec3.exp = Public.exp;
29
+ Vec3.exp2 = Public.exp2;
30
+ Vec3.faceforward = Public.faceforward;
31
+ Vec3.floor = Public.floor;
32
+ Vec3.fract = Public.fract;
33
+ Vec3.length = Public.length;
34
+ Vec3.lengthSquared = Public.lengthSquared;
35
+ Vec3.log = Public.log;
36
+ Vec3.log2 = Public.log2;
37
+ Vec3.max = Public.max;
38
+ Vec3.min = Public.min;
39
+ Vec3.mix = Public.mix;
40
+ Vec3.mod = Public.mod;
41
+ Vec3.modf = Public.modf;
42
+ Vec3.multiply = Public.multiply;
43
+ Vec3.negate = Public.negate;
44
+ Vec3.normalize = Public.normalize;
45
+ Vec3.one = Public.one;
46
+ Vec3.pow = Public.pow;
47
+ Vec3.random = Public.random;
48
+ Vec3.reflect = Public.reflect;
49
+ Vec3.refract = Public.refract;
50
+ Vec3.round = Public.round;
51
+ Vec3.scale = Public.scale;
52
+ Vec3.sign = Public.sign;
53
+ Vec3.sin = Public.sin;
54
+ Vec3.sinh = Public.sinh;
55
+ Vec3.smoothstep = Public.smoothstep;
56
+ Vec3.sqrt = Public.sqrt;
57
+ Vec3.step = Public.step;
58
+ Vec3.subtract = Public.subtract;
59
+ Vec3.tan = Public.tan;
60
+ Vec3.tanh = Public.tanh;
61
+ Vec3.trunc = Public.trunc;
62
+ Vec3.zero = Public.zero;
63
+ })(Vec3 || (Vec3 = {}));
3
64
  //# sourceMappingURL=index.js.map