cluaupp 1.5.0 → 1.5.1

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 (323) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/README.md +10 -5
  3. package/api/CHANGELOG.md +3 -0
  4. package/api/chat.js +74 -0
  5. package/api/fixtures/roblox/README.md +6 -0
  6. package/api/fixtures/roblox/aux/sample.d.luau +6 -0
  7. package/api/fixtures/roblox/mini/Mini-API-Dump.json +72 -0
  8. package/api/generated/bench-latest.json +39 -0
  9. package/api/generated/capability-profile.json +76 -0
  10. package/api/generated/lsp-index.json +1 -0
  11. package/api/generated/luau/classes.d.luau +11221 -0
  12. package/api/generated/luau/datatypes.d.luau +327 -0
  13. package/api/generated/luau/enums.d.luau +4918 -0
  14. package/api/generated/luau/globals.d.luau +12 -0
  15. package/api/manifests/roblox-target.manifest.json +22 -0
  16. package/api/normalized/roblox-target.profile.json +237461 -0
  17. package/api/overrides/classes.json +8 -0
  18. package/api/overrides/compatibility.json +9 -0
  19. package/api/overrides/datatypes.json +1579 -0
  20. package/api/overrides/enums.json +8 -0
  21. package/api/overrides/globals.json +8 -0
  22. package/api/overrides/type-mappings.json +9 -0
  23. package/api/roblox-api.lock.json +9 -0
  24. package/data/Mini-API-Dump.json +1 -0
  25. package/editors/vscode/README.md +12 -10
  26. package/editors/vscode/extension.js +82 -0
  27. package/editors/vscode/icons/axiom.svg +4 -0
  28. package/editors/vscode/icons/bloom.svg +5 -0
  29. package/editors/vscode/icons/helm.svg +4 -0
  30. package/editors/vscode/icons/hive.svg +5 -0
  31. package/editors/vscode/icons/mint.svg +4 -0
  32. package/editors/vscode/icons/shift.svg +6 -0
  33. package/editors/vscode/language-configuration-schema.json +24 -0
  34. package/editors/vscode/package.json +172 -12
  35. package/editors/vscode/snippets/axiom.json +12 -0
  36. package/editors/vscode/snippets/bloom.json +12 -0
  37. package/editors/vscode/snippets/helm.json +12 -0
  38. package/editors/vscode/snippets/hive.json +12 -0
  39. package/editors/vscode/snippets/mint.json +12 -0
  40. package/editors/vscode/snippets/shift.json +17 -0
  41. package/editors/vscode/syntaxes/axiom.tmLanguage.json +5 -0
  42. package/editors/vscode/syntaxes/bloom.tmLanguage.json +5 -0
  43. package/editors/vscode/syntaxes/helm.tmLanguage.json +5 -0
  44. package/editors/vscode/syntaxes/hive.tmLanguage.json +5 -0
  45. package/editors/vscode/syntaxes/mint.tmLanguage.json +5 -0
  46. package/editors/vscode/syntaxes/schema.tmLanguage.json +89 -0
  47. package/editors/vscode/syntaxes/shift.tmLanguage.json +5 -0
  48. package/examples/game/.cluaupp/compile-cache/ReplicatedStorage__Shared__Constants__Datas__TemplateData.clh.json +1 -0
  49. package/examples/game/.cluaupp/compile-cache/ServerScriptService__Boot__DataBoot.server.clpp.json +1 -0
  50. package/examples/game/.cluaupp/compile-cache/ServerScriptService__Configuration__ServerConfig.clp.json +1 -0
  51. package/examples/game/.cluaupp/compile-cache/ServerScriptService__Handlers__Guard.server.clpp.json +1 -0
  52. package/examples/game/.cluaupp/compile-cache/ServerScriptService__Handlers__PlayerHandler.server.clpp.json +1 -0
  53. package/examples/game/.cluaupp/compile-cache/StarterPlayer__StarterCharacterScripts__Character__CharacterReady.client.clpp.json +1 -0
  54. package/examples/game/.cluaupp/compile-cache/StarterPlayer__StarterPlayerScripts__Controllers__DataController.client.clpp.json +1 -0
  55. package/examples/game/.cluaupp/compile-cache/index.json +12 -0
  56. package/examples/game/.cluaupp/datamodel-profile.json +94 -0
  57. package/examples/game/.vscode/settings.json +12 -1
  58. package/examples/game/include/clpp/datatypes.clh +337 -373
  59. package/examples/game/include/clpp/generated/datamodel.clh +25 -0
  60. package/examples/game/include/clpp/generated/enums.clh +1 -1
  61. package/examples/game/include/clpp/generated/instances.clh +41135 -41064
  62. package/examples/game/include/clpp/libs/axiom.clh +1 -1
  63. package/examples/game/include/clpp/libs/math.clh +14 -0
  64. package/examples/game/include/clpp/libs/spring.clh +17 -0
  65. package/examples/game/include/clpp/libs/ward.clh +1 -0
  66. package/examples/game/include/clpp/roblox.clh +3 -4
  67. package/examples/game/libs/ArrayIndexer/init.luau +209 -0
  68. package/examples/game/libs/Axiom/init.luau +608 -0
  69. package/examples/game/libs/Bloom/init.luau +433 -0
  70. package/examples/game/libs/Coil/init.luau +215 -0
  71. package/examples/game/libs/Crest/init.luau +426 -0
  72. package/examples/game/libs/Echo/init.luau +417 -0
  73. package/examples/game/libs/Ember/init.luau +365 -0
  74. package/examples/game/libs/Flare/init.luau +717 -0
  75. package/examples/game/libs/Gleam/init.luau +729 -0
  76. package/examples/game/libs/Guide/init.luau +215 -0
  77. package/examples/game/libs/Helm/init.luau +377 -0
  78. package/examples/game/libs/Hive/init.luau +241 -0
  79. package/examples/game/libs/Keep/Client.luau +114 -0
  80. package/examples/game/libs/Keep/Data.luau +883 -0
  81. package/examples/game/libs/Keep/Engine.luau +211 -0
  82. package/examples/game/libs/Keep/Enum.luau +6 -0
  83. package/examples/game/libs/Keep/Enums.luau +10 -0
  84. package/examples/game/libs/Keep/Path.luau +236 -0
  85. package/examples/game/libs/Keep/Replicator.luau +298 -0
  86. package/examples/game/libs/Keep/Server.luau +251 -0
  87. package/examples/game/libs/Keep/Store.luau +652 -0
  88. package/examples/game/libs/Keep/Trade.luau +455 -0
  89. package/examples/game/libs/Keep/init.luau +205 -0
  90. package/examples/game/libs/Lens/init.luau +609 -0
  91. package/examples/game/libs/Mint/init.luau +279 -0
  92. package/examples/game/libs/Net/init.luau +156 -0
  93. package/examples/game/libs/Net/src/codec.luau +224 -0
  94. package/examples/game/libs/Occlude/init.luau +117 -0
  95. package/examples/game/libs/Pin/init.luau +309 -0
  96. package/examples/game/libs/Promise/LICENSE +21 -0
  97. package/examples/game/libs/Promise/_impl/LICENSE +21 -0
  98. package/examples/game/libs/Promise/_impl/init.lua +1991 -0
  99. package/examples/game/libs/Promise/init.lua +1990 -0
  100. package/examples/game/libs/Promise/init.luau +13 -0
  101. package/examples/game/libs/Promise/types.luau +46 -0
  102. package/examples/game/libs/Roster/init.luau +686 -0
  103. package/examples/game/libs/SOURCES.md +31 -0
  104. package/examples/game/libs/Shift/init.luau +238 -0
  105. package/examples/game/libs/Spark/init.luau +487 -0
  106. package/examples/game/libs/Stage/init.luau +178 -0
  107. package/examples/game/libs/Sweep/init.luau +259 -0
  108. package/examples/game/libs/Trace/init.luau +213 -0
  109. package/examples/game/libs/Ward/init.luau +211 -0
  110. package/examples/game/out/ReplicatedStorage/Shared/Constants/Datas/TemplateData.luau +29 -0
  111. package/examples/game/out/ReplicatedStorage/Shared/Constants/Datas/TemplateData.luau.map.json +13 -0
  112. package/examples/game/out/ReplicatedStorage/Shared/Net/Net.luau +83 -0
  113. package/examples/game/out/ReplicatedStorage/Shared/Net/Net.luau.map.json +13 -0
  114. package/examples/game/out/ServerScriptService/Boot/DataBoot.server.luau +18 -0
  115. package/examples/game/out/ServerScriptService/Boot/DataBoot.server.luau.map.json +13 -0
  116. package/examples/game/out/ServerScriptService/Configuration/ServerConfig.luau +14 -0
  117. package/examples/game/out/ServerScriptService/Configuration/ServerConfig.luau.map.json +13 -0
  118. package/examples/game/out/ServerScriptService/Handlers/Guard.server.luau +15 -0
  119. package/examples/game/out/ServerScriptService/Handlers/Guard.server.luau.map.json +13 -0
  120. package/examples/game/out/ServerScriptService/Handlers/PlayerHandler.server.luau +50 -0
  121. package/examples/game/out/ServerScriptService/Handlers/PlayerHandler.server.luau.map.json +13 -0
  122. package/examples/game/out/StarterPlayer/StarterCharacterScripts/Character/CharacterReady.client.luau +12 -0
  123. package/examples/game/out/StarterPlayer/StarterCharacterScripts/Character/CharacterReady.client.luau.map.json +13 -0
  124. package/examples/game/out/StarterPlayer/StarterPlayerScripts/Controllers/DataController.client.luau +16 -0
  125. package/examples/game/out/StarterPlayer/StarterPlayerScripts/Controllers/DataController.client.luau.map.json +13 -0
  126. package/examples/game/src/ReplicatedStorage/Shared/Net/Net.clh +26 -0
  127. package/examples/game/src/ServerScriptService/Boot/DataBoot.server.clpp +1 -1
  128. package/examples/game/src/ServerScriptService/Handlers/PlayerHandler.server.clpp +1 -1
  129. package/examples/game/stylua.toml +9 -0
  130. package/generated/api/build-profile.js +115 -0
  131. package/generated/api/cache.js +44 -0
  132. package/generated/api/coverage.js +32 -0
  133. package/generated/api/diff.js +125 -0
  134. package/generated/api/generators/clpp-headers.js +353 -0
  135. package/generated/api/generators/docs-reference.js +7 -0
  136. package/generated/api/generators/lsp-index.js +81 -0
  137. package/generated/api/generators/luau-defs.js +94 -0
  138. package/generated/api/ide.js +76 -0
  139. package/generated/api/identifier.js +47 -0
  140. package/generated/api/index.js +324 -0
  141. package/generated/api/loader.js +57 -0
  142. package/generated/api/merge.js +88 -0
  143. package/generated/api/model.js +5 -0
  144. package/generated/api/normalize.js +231 -0
  145. package/generated/api/overrides-validate.js +58 -0
  146. package/generated/api/perf.js +12 -0
  147. package/generated/api/registry.js +136 -0
  148. package/generated/api/release.js +44 -0
  149. package/generated/api/resolver.js +250 -0
  150. package/generated/api/sources/aux-types-diff.js +75 -0
  151. package/generated/api/sources/client-tracker.js +11 -0
  152. package/generated/api/sources/creator-docs.js +42 -0
  153. package/generated/api/sources/luau-types.js +34 -0
  154. package/generated/api/sources/mini-dump.js +17 -0
  155. package/generated/api/sources/studio-api.js +8 -0
  156. package/generated/api/sources/studio-apiv2.js +11 -0
  157. package/generated/api/sources/studio-full-api.js +8 -0
  158. package/generated/api/studio-smoke.js +80 -0
  159. package/generated/api/type-parse.js +49 -0
  160. package/generated/api/understander.js +51 -0
  161. package/generated/api/validate.js +135 -0
  162. package/generated/api-cli.js +421 -0
  163. package/generated/cli.js +16 -5
  164. package/generated/clpp/contract.js +3 -3
  165. package/generated/clpp/format-luau.js +236 -0
  166. package/generated/clpp/index.js +13 -1
  167. package/generated/clpp/modules.js +227 -0
  168. package/generated/clpp/postprocess.js +86 -5
  169. package/generated/clpp/rewrite-janitor.js +145 -0
  170. package/generated/clpp/runner.js +14 -2
  171. package/generated/compile.js +82 -0
  172. package/generated/flare/parse.js +12 -1
  173. package/generated/intellisense.js +57 -1
  174. package/generated/native/index.js +217 -16
  175. package/generated/target/authority-check.js +136 -0
  176. package/generated/target/authority-graph.js +74 -0
  177. package/generated/target/build-cache.js +112 -0
  178. package/generated/target/capabilities.js +89 -0
  179. package/generated/target/capability-profile.js +30 -0
  180. package/generated/target/component-contracts.js +60 -0
  181. package/generated/target/context-check.js +160 -0
  182. package/generated/target/datamodel-check.js +170 -0
  183. package/generated/target/datamodel-generate.js +74 -0
  184. package/generated/target/datamodel.js +233 -0
  185. package/generated/target/diagnostics.js +63 -0
  186. package/generated/target/doctor.js +152 -0
  187. package/generated/target/flare-version.js +58 -0
  188. package/generated/target/get-service.js +69 -0
  189. package/generated/target/lifetime-check.js +47 -0
  190. package/generated/target/luau-stamp.js +39 -0
  191. package/generated/target/optimizer-advise.js +88 -0
  192. package/generated/target/optimizer-apply.js +44 -0
  193. package/generated/target/optimizer-soa.js +254 -0
  194. package/generated/target/parallel-check.js +136 -0
  195. package/generated/target/pgo.js +148 -0
  196. package/generated/target/project-docs.js +69 -0
  197. package/generated/target/project-graph.js +71 -0
  198. package/generated/target/roblox.js +63 -0
  199. package/generated/target/security-check.js +41 -0
  200. package/generated/target/source-map.js +25 -0
  201. package/generated/target/studio-bridge.js +112 -0
  202. package/generated/utils/project.js +178 -8
  203. package/generated/utils/rojo-mapper.js +11 -3
  204. package/include/clpp/datatypes.clh +337 -373
  205. package/include/clpp/generated/enums.clh +1 -1
  206. package/include/clpp/generated/instances.clh +41135 -41064
  207. package/include/clpp/libs/axiom.clh +1 -1
  208. package/include/clpp/libs/hive.clh +1 -0
  209. package/include/clpp/libs/keep.clh +2 -0
  210. package/include/clpp/libs/math.clh +14 -0
  211. package/include/clpp/libs/spring.clh +17 -0
  212. package/include/clpp/libs/ward.clh +1 -0
  213. package/include/clpp/roblox.clh +3 -4
  214. package/package.json +10 -3
  215. package/plugins/CluauppNav/Plugin.luau +207 -0
  216. package/plugins/CluauppNav/ProfileLogger.luau +27 -0
  217. package/plugins/CluauppNav/README.md +24 -0
  218. package/runtime/Axiom/init.luau +10 -7
  219. package/runtime/Coil/init.luau +8 -2
  220. package/runtime/Crest/init.luau +1 -0
  221. package/runtime/Flare/init.luau +2 -1
  222. package/runtime/Gleam/init.luau +15 -4
  223. package/runtime/Hive/init.luau +36 -14
  224. package/runtime/Pin/init.luau +5 -2
  225. package/runtime/Roster/init.luau +2 -0
  226. package/runtime/Spark/init.luau +3 -0
  227. package/runtime/Sweep/init.luau +2 -0
  228. package/runtime/Trace/init.luau +3 -0
  229. package/runtime/Ward/init.luau +38 -5
  230. package/scripts/postinstall-editor.js +17 -0
  231. package/skills/README.md +13 -0
  232. package/skills/clpp-hive-flare/SKILL.md +79 -0
  233. package/skills/clpp-language/SKILL.md +123 -0
  234. package/skills/clpp-language/compiler.md +89 -0
  235. package/skills/clpp-style/SKILL.md +95 -0
  236. package/src/api/build-profile.ts +138 -0
  237. package/src/api/cache.ts +45 -0
  238. package/src/api/coverage.ts +46 -0
  239. package/src/api/diff.ts +143 -0
  240. package/src/api/generators/clpp-headers.ts +377 -0
  241. package/src/api/generators/docs-reference.ts +11 -0
  242. package/src/api/generators/lsp-index.ts +106 -0
  243. package/src/api/generators/luau-defs.ts +98 -0
  244. package/src/api/ide.ts +87 -0
  245. package/src/api/identifier.ts +47 -0
  246. package/src/api/index.ts +269 -0
  247. package/src/api/loader.ts +60 -0
  248. package/src/api/merge.ts +126 -0
  249. package/src/api/model.ts +283 -0
  250. package/src/api/normalize.ts +257 -0
  251. package/src/api/overrides-validate.ts +58 -0
  252. package/src/api/perf.ts +15 -0
  253. package/src/api/registry.ts +162 -0
  254. package/src/api/release.ts +47 -0
  255. package/src/api/resolver.ts +255 -0
  256. package/src/api/sources/aux-types-diff.ts +81 -0
  257. package/src/api/sources/client-tracker.ts +10 -0
  258. package/src/api/sources/creator-docs.ts +37 -0
  259. package/src/api/sources/luau-types.ts +30 -0
  260. package/src/api/sources/mini-dump.ts +50 -0
  261. package/src/api/sources/studio-api.ts +7 -0
  262. package/src/api/sources/studio-apiv2.ts +10 -0
  263. package/src/api/sources/studio-full-api.ts +7 -0
  264. package/src/api/studio-smoke.ts +82 -0
  265. package/src/api/type-parse.ts +48 -0
  266. package/src/api/understander.ts +72 -0
  267. package/src/api/validate.ts +160 -0
  268. package/src/api-cli.ts +493 -0
  269. package/src/api.generated.js +37 -22
  270. package/src/cli.ts +21 -6
  271. package/src/clpp/contract.ts +34 -3
  272. package/src/clpp/format-luau.ts +262 -0
  273. package/src/clpp/index.ts +13 -2
  274. package/src/clpp/modules.ts +252 -0
  275. package/src/clpp/postprocess.ts +100 -5
  276. package/src/clpp/rewrite-janitor.ts +156 -0
  277. package/src/clpp/runner.ts +14 -2
  278. package/src/compile.ts +87 -0
  279. package/src/flare/parse.ts +14 -1
  280. package/src/flare/types.ts +2 -0
  281. package/src/intellisense.ts +58 -1
  282. package/src/native/index.ts +225 -16
  283. package/src/target/authority-check.ts +162 -0
  284. package/src/target/authority-graph.ts +80 -0
  285. package/src/target/build-cache.ts +129 -0
  286. package/src/target/capabilities.ts +115 -0
  287. package/src/target/capability-profile.ts +25 -0
  288. package/src/target/component-contracts.ts +64 -0
  289. package/src/target/context-check.ts +177 -0
  290. package/src/target/datamodel-check.ts +188 -0
  291. package/src/target/datamodel-generate.ts +78 -0
  292. package/src/target/datamodel.ts +261 -0
  293. package/src/target/diagnostics.ts +67 -0
  294. package/src/target/doctor.ts +171 -0
  295. package/src/target/flare-version.ts +61 -0
  296. package/src/target/get-service.ts +85 -0
  297. package/src/target/lifetime-check.ts +45 -0
  298. package/src/target/luau-stamp.ts +33 -0
  299. package/src/target/optimizer-advise.ts +93 -0
  300. package/src/target/optimizer-apply.ts +63 -0
  301. package/src/target/optimizer-soa.ts +270 -0
  302. package/src/target/parallel-check.ts +135 -0
  303. package/src/target/pgo.ts +157 -0
  304. package/src/target/project-docs.ts +68 -0
  305. package/src/target/project-graph.ts +75 -0
  306. package/src/target/roblox.ts +78 -0
  307. package/src/target/security-check.ts +40 -0
  308. package/src/target/source-map.ts +36 -0
  309. package/src/target/studio-bridge.ts +140 -0
  310. package/src/types.ts +14 -0
  311. package/src/utils/project.ts +183 -9
  312. package/src/utils/rojo-mapper.ts +12 -3
  313. package/stylua.toml +9 -0
  314. package/templates/game/.vscode/settings.json +7 -1
  315. package/templates/game/include/clpp/datatypes.clh +337 -373
  316. package/templates/game/include/clpp/generated/enums.clh +1 -1
  317. package/templates/game/include/clpp/generated/instances.clh +41135 -41064
  318. package/templates/game/include/clpp/libs/axiom.clh +1 -1
  319. package/templates/game/include/clpp/libs/ward.clh +1 -0
  320. package/templates/game/include/clpp/roblox.clh +3 -4
  321. package/templates/game/src/ServerScriptService/Boot/DataBoot.server.clpp +1 -1
  322. package/templates/game/src/ServerScriptService/Handlers/PlayerHandler.server.clpp +1 -1
  323. package/templates/game/stylua.toml +9 -0
@@ -0,0 +1,608 @@
1
+ --!native
2
+ --!optimize 2
3
+ --!strict
4
+ -- Axiom — Cluaupp math. 113 formulas grouped; .axiom tree-shakes unused groups.
5
+ -- Every public function returns a concrete type. No any. No nil on the math path.
6
+
7
+ local Axiom = {}
8
+
9
+ function Axiom._ease(kind: string, mode: string, t: number): number
10
+ local x = t
11
+ if kind == "Sine" then
12
+ x = if mode == "In" then 1 - math.cos((t * math.pi) / 2) elseif mode == "Out" then math.sin((t * math.pi) / 2) else -(math.cos(math.pi * t) - 1) / 2
13
+ elseif kind == "Quad" then
14
+ x = if mode == "In" then t * t elseif mode == "Out" then 1 - (1 - t) * (1 - t) else (if t < 0.5 then 2 * t * t else 1 - (-2 * t + 2) ^ 2 / 2)
15
+ elseif kind == "Cubic" then
16
+ x = if mode == "In" then t ^ 3 elseif mode == "Out" then 1 - (1 - t) ^ 3 else (if t < 0.5 then 4 * t ^ 3 else 1 - (-2 * t + 2) ^ 3 / 2)
17
+ elseif kind == "Quart" then
18
+ x = if mode == "In" then t ^ 4 elseif mode == "Out" then 1 - (1 - t) ^ 4 else (if t < 0.5 then 8 * t ^ 4 else 1 - (-2 * t + 2) ^ 4 / 2)
19
+ elseif kind == "Quint" then
20
+ x = if mode == "In" then t ^ 5 elseif mode == "Out" then 1 - (1 - t) ^ 5 else (if t < 0.5 then 16 * t ^ 5 else 1 - (-2 * t + 2) ^ 5 / 2)
21
+ elseif kind == "Expo" then
22
+ x = if t == 0 then 0 elseif t == 1 then 1 elseif mode == "In" then 2 ^ (10 * t - 10) elseif mode == "Out" then 1 - 2 ^ (-10 * t) else (if t < 0.5 then 2 ^ (20 * t - 10) / 2 else (2 - 2 ^ (-20 * t + 10)) / 2)
23
+ elseif kind == "Circ" then
24
+ x = if mode == "In" then 1 - math.sqrt(1 - t ^ 2) elseif mode == "Out" then math.sqrt(1 - (t - 1) ^ 2) else (if t < 0.5 then (1 - math.sqrt(1 - (2 * t) ^ 2)) / 2 else (math.sqrt(1 - (-2 * t + 2) ^ 2) + 1) / 2)
25
+ elseif kind == "Back" then
26
+ local c1, c3 = 1.70158, 2.70158
27
+ x = if mode == "In" then c3 * t ^ 3 - c1 * t ^ 2 elseif mode == "Out" then 1 + c3 * (t - 1) ^ 3 + c1 * (t - 1) ^ 2 else (if t < 0.5 then ((2 * t) ^ 2 * ((c1 * 1.525 + 1) * 2 * t - c1 * 1.525)) / 2 else ((2 * t - 2) ^ 2 * ((c1 * 1.525 + 1) * (t * 2 - 2) + c1 * 1.525) + 2) / 2)
28
+ elseif kind == "Elastic" then
29
+ x = if t == 0 then 0 elseif t == 1 then 1 elseif mode == "In" then -2 ^ (10 * t - 10) * math.sin((t * 10 - 10.75) * ((2 * math.pi) / 3)) elseif mode == "Out" then 2 ^ (-10 * t) * math.sin((t * 10 - 0.75) * ((2 * math.pi) / 3)) + 1 else (if t < 0.5 then -(2 ^ (20 * t - 10) * math.sin((20 * t - 11.125) * ((2 * math.pi) / 4.5))) / 2 else (2 ^ (-20 * t + 10) * math.sin((20 * t - 11.125) * ((2 * math.pi) / 4.5))) / 2 + 1)
30
+ elseif kind == "Bounce" then
31
+ local function out(v: number): number
32
+ local n1, d1 = 7.5625, 2.75
33
+ if v < 1 / d1 then return n1 * v * v elseif v < 2 / d1 then v -= 1.5 / d1 return n1 * v * v + 0.75 elseif v < 2.5 / d1 then v -= 2.25 / d1 return n1 * v * v + 0.9375 else v -= 2.625 / d1 return n1 * v * v + 0.984375 end
34
+ end
35
+ x = if mode == "In" then 1 - out(1 - t) elseif mode == "Out" then out(t) else (if t < 0.5 then (1 - out(1 - 2 * t)) / 2 else (1 + out(2 * t - 1)) / 2)
36
+ end
37
+ return x
38
+ end
39
+
40
+ function Axiom.Clamp(value: number, min: number, max: number): number
41
+ return math.clamp(value, min, max)
42
+ end
43
+
44
+ function Axiom.Map(value: number, inMin: number, inMax: number, outMin: number, outMax: number): number
45
+ if inMax == inMin then return outMin end
46
+ return outMin + (outMax - outMin) * ((value - inMin) / (inMax - inMin))
47
+ end
48
+
49
+ function Axiom.Wrap(value: number, min: number, max: number): number
50
+ local range = max - min
51
+ if range == 0 then return min end
52
+ local wrapped = (value - min) % range
53
+ if wrapped < 0 then wrapped += range end
54
+ return min + wrapped
55
+ end
56
+
57
+ function Axiom.Sign(value: number): number
58
+ if value > 0 then return 1 elseif value < 0 then return -1 end
59
+ return 0
60
+ end
61
+
62
+ function Axiom.Round(value: number, places: number?): number
63
+ local factor = 10 ^ (places or 0)
64
+ return math.floor(value * factor + 0.5) / factor
65
+ end
66
+
67
+ function Axiom.Snap(value: number, step: number): number
68
+ if step == 0 then return value end
69
+ return math.floor(value / step + 0.5) * step
70
+ end
71
+
72
+ function Axiom.PingPong(t: number, length: number): number
73
+ local doubled = t / math.max(length, 1e-8)
74
+ return length - math.abs(doubled % 2 * length - length)
75
+ end
76
+
77
+ function Axiom.Saturate(value: number): number
78
+ return math.clamp(value, 0, 1)
79
+ end
80
+
81
+ function Axiom.Fract(value: number): number
82
+ return value - math.floor(value)
83
+ end
84
+
85
+ function Axiom.InvLerp(from: number, to: number, value: number): number
86
+ if from == to then return 0 end
87
+ return (value - from) / (to - from)
88
+ end
89
+
90
+ function Axiom.Approach(current: number, target: number, maxDelta: number): number
91
+ return current + math.clamp(target - current, -maxDelta, maxDelta)
92
+ end
93
+
94
+ function Axiom.IsFinite(value: number): boolean
95
+ return value == value and value ~= math.huge and value ~= -math.huge
96
+ end
97
+
98
+ function Axiom.Abs(value: number): number
99
+ return math.abs(value)
100
+ end
101
+
102
+ function Axiom.Min(a: number, b: number): number
103
+ return math.min(a, b)
104
+ end
105
+
106
+ function Axiom.Max(a: number, b: number): number
107
+ return math.max(a, b)
108
+ end
109
+
110
+ function Axiom.Pow(base: number, exp: number): number
111
+ return base ^ exp
112
+ end
113
+
114
+ function Axiom.Sqrt(value: number): number
115
+ return math.sqrt(value)
116
+ end
117
+
118
+ function Axiom.Cbrt(value: number): number
119
+ return if value < 0 then -((-value) ^ (1 / 3)) else value ^ (1 / 3)
120
+ end
121
+
122
+ function Axiom.Hypot(a: number, b: number): number
123
+ return math.sqrt(a * a + b * b)
124
+ end
125
+
126
+ function Axiom.Log(value: number): number
127
+ return math.log(value)
128
+ end
129
+
130
+ function Axiom.Exp(value: number): number
131
+ return math.exp(value)
132
+ end
133
+
134
+ function Axiom.Smoothstep(edge0: number, edge1: number, x: number): number
135
+ local t = math.clamp((x - edge0) / math.max(edge1 - edge0, 1e-8), 0, 1)
136
+ return t * t * (3 - 2 * t)
137
+ end
138
+
139
+ function Axiom.Smootherstep(edge0: number, edge1: number, x: number): number
140
+ local t = math.clamp((x - edge0) / math.max(edge1 - edge0, 1e-8), 0, 1)
141
+ return t * t * t * (t * (t * 6 - 15) + 10)
142
+ end
143
+
144
+ function Axiom.Gcd(a: number, b: number): number
145
+ a, b = math.abs(a), math.abs(b)
146
+ while b ~= 0 do a, b = b, a % b end
147
+ return a
148
+ end
149
+
150
+ function Axiom.Lcm(a: number, b: number): number
151
+ local g = Axiom.Gcd(a, b)
152
+ if g == 0 then return 0 end
153
+ return math.abs(a * b) / g
154
+ end
155
+
156
+ function Axiom.IsEven(value: number): boolean
157
+ return value % 2 == 0
158
+ end
159
+
160
+ function Axiom.IsOdd(value: number): boolean
161
+ return value % 2 ~= 0
162
+ end
163
+
164
+ function Axiom.Factorial(n: number): number
165
+ local f = 1
166
+ for i = 2, math.floor(n) do f *= i end
167
+ return f
168
+ end
169
+
170
+ function Axiom.Scale(value: number, index: number): number
171
+ local n = math.floor(index)
172
+ local k = (n % 50) + 1
173
+ return value * k / 50
174
+ end
175
+
176
+ function Axiom.Lerp(from: number, to: number, alpha: number): number
177
+ return from + (to - from) * alpha
178
+ end
179
+
180
+ function Axiom.LerpClamped(from: number, to: number, alpha: number): number
181
+ return from + (to - from) * math.clamp(alpha, 0, 1)
182
+ end
183
+
184
+ function Axiom.LerpVector2(from: Vector2, to: Vector2, alpha: number): Vector2
185
+ return from:Lerp(to, alpha)
186
+ end
187
+
188
+ function Axiom.LerpVector3(from: Vector3, to: Vector3, alpha: number): Vector3
189
+ return from:Lerp(to, alpha)
190
+ end
191
+
192
+ function Axiom.LerpColor3(from: Color3, to: Color3, alpha: number): Color3
193
+ return from:Lerp(to, alpha)
194
+ end
195
+
196
+ function Axiom.LerpCFrame(from: CFrame, to: CFrame, alpha: number): CFrame
197
+ return from:Lerp(to, alpha)
198
+ end
199
+
200
+ function Axiom.LerpUDim2(from: UDim2, to: UDim2, alpha: number): UDim2
201
+ return from:Lerp(to, alpha)
202
+ end
203
+
204
+ function Axiom.LerpAngle(from: number, to: number, alpha: number): number
205
+ return from + Axiom.DeltaAngle(from, to) * alpha
206
+ end
207
+
208
+ function Axiom.Inverse(from: number, to: number, value: number): number
209
+ return Axiom.InvLerp(from, to, value)
210
+ end
211
+
212
+ function Axiom.Project(a: Vector3, b: Vector3): Vector3
213
+ local d = b.Magnitude
214
+ if d < 1e-8 then return Vector3.zero end
215
+ return b.Unit * a:Dot(b.Unit)
216
+ end
217
+
218
+ function Axiom.Reject(a: Vector3, b: Vector3): Vector3
219
+ return a - Axiom.Project(a, b)
220
+ end
221
+
222
+ function Axiom.Reflect(incident: Vector3, normal: Vector3): Vector3
223
+ return incident - 2 * incident:Dot(normal) * normal
224
+ end
225
+
226
+ function Axiom.Angle(a: Vector3, b: Vector3): number
227
+ return math.acos(math.clamp(a.Unit:Dot(b.Unit), -1, 1))
228
+ end
229
+
230
+ function Axiom.Distance(a: Vector3, b: Vector3): number
231
+ return (b - a).Magnitude
232
+ end
233
+
234
+ function Axiom.Distance2(a: Vector2, b: Vector2): number
235
+ return (b - a).Magnitude
236
+ end
237
+
238
+ function Axiom.Orthonormal(forward: Vector3, up: Vector3?): CFrame
239
+ local u = up or Vector3.yAxis
240
+ local f = forward.Unit
241
+ local r = f:Cross(u)
242
+ if r.Magnitude < 1e-8 then r = f:Cross(Vector3.xAxis) end
243
+ r = r.Unit
244
+ return CFrame.fromMatrix(Vector3.zero, r, r:Cross(f), -f)
245
+ end
246
+
247
+ function Axiom.Slerp(a: Vector3, b: Vector3, t: number): Vector3
248
+ local dot = math.clamp(a.Unit:Dot(b.Unit), -1, 1)
249
+ local theta = math.acos(dot) * t
250
+ local rel = (b.Unit - a.Unit * dot)
251
+ if rel.Magnitude < 1e-8 then return a:Lerp(b, t) end
252
+ return (a.Unit * math.cos(theta) + rel.Unit * math.sin(theta)) * ((1 - t) * a.Magnitude + t * b.Magnitude)
253
+ end
254
+
255
+ function Axiom.LookAt(from: Vector3, look: Vector3): CFrame
256
+ return CFrame.lookAt(from, look)
257
+ end
258
+
259
+ function Axiom.SlerpCFrame(a: CFrame, b: CFrame, t: number): CFrame
260
+ return a:Lerp(b, t)
261
+ end
262
+
263
+ function Axiom.Flat(cf: CFrame): CFrame
264
+ local look = cf.LookVector * Vector3.new(1, 0, 1)
265
+ if look.Magnitude < 1e-8 then look = Vector3.zAxis end
266
+ return CFrame.lookAt(cf.Position, cf.Position + look.Unit)
267
+ end
268
+
269
+ function Axiom.InSine(t: number): number
270
+ return Axiom._ease("Sine", "In", math.clamp(t, 0, 1))
271
+ end
272
+
273
+ function Axiom.OutSine(t: number): number
274
+ return Axiom._ease("Sine", "Out", math.clamp(t, 0, 1))
275
+ end
276
+
277
+ function Axiom.InOutSine(t: number): number
278
+ return Axiom._ease("Sine", "InOut", math.clamp(t, 0, 1))
279
+ end
280
+
281
+ function Axiom.InQuad(t: number): number
282
+ return Axiom._ease("Quad", "In", math.clamp(t, 0, 1))
283
+ end
284
+
285
+ function Axiom.OutQuad(t: number): number
286
+ return Axiom._ease("Quad", "Out", math.clamp(t, 0, 1))
287
+ end
288
+
289
+ function Axiom.InOutQuad(t: number): number
290
+ return Axiom._ease("Quad", "InOut", math.clamp(t, 0, 1))
291
+ end
292
+
293
+ function Axiom.InCubic(t: number): number
294
+ return Axiom._ease("Cubic", "In", math.clamp(t, 0, 1))
295
+ end
296
+
297
+ function Axiom.OutCubic(t: number): number
298
+ return Axiom._ease("Cubic", "Out", math.clamp(t, 0, 1))
299
+ end
300
+
301
+ function Axiom.InOutCubic(t: number): number
302
+ return Axiom._ease("Cubic", "InOut", math.clamp(t, 0, 1))
303
+ end
304
+
305
+ function Axiom.InQuart(t: number): number
306
+ return Axiom._ease("Quart", "In", math.clamp(t, 0, 1))
307
+ end
308
+
309
+ function Axiom.OutQuart(t: number): number
310
+ return Axiom._ease("Quart", "Out", math.clamp(t, 0, 1))
311
+ end
312
+
313
+ function Axiom.InOutQuart(t: number): number
314
+ return Axiom._ease("Quart", "InOut", math.clamp(t, 0, 1))
315
+ end
316
+
317
+ function Axiom.InQuint(t: number): number
318
+ return Axiom._ease("Quint", "In", math.clamp(t, 0, 1))
319
+ end
320
+
321
+ function Axiom.OutQuint(t: number): number
322
+ return Axiom._ease("Quint", "Out", math.clamp(t, 0, 1))
323
+ end
324
+
325
+ function Axiom.InOutQuint(t: number): number
326
+ return Axiom._ease("Quint", "InOut", math.clamp(t, 0, 1))
327
+ end
328
+
329
+ function Axiom.InExpo(t: number): number
330
+ return Axiom._ease("Expo", "In", math.clamp(t, 0, 1))
331
+ end
332
+
333
+ function Axiom.OutExpo(t: number): number
334
+ return Axiom._ease("Expo", "Out", math.clamp(t, 0, 1))
335
+ end
336
+
337
+ function Axiom.InOutExpo(t: number): number
338
+ return Axiom._ease("Expo", "InOut", math.clamp(t, 0, 1))
339
+ end
340
+
341
+ function Axiom.InCirc(t: number): number
342
+ return Axiom._ease("Circ", "In", math.clamp(t, 0, 1))
343
+ end
344
+
345
+ function Axiom.OutCirc(t: number): number
346
+ return Axiom._ease("Circ", "Out", math.clamp(t, 0, 1))
347
+ end
348
+
349
+ function Axiom.InOutCirc(t: number): number
350
+ return Axiom._ease("Circ", "InOut", math.clamp(t, 0, 1))
351
+ end
352
+
353
+ function Axiom.InBack(t: number): number
354
+ return Axiom._ease("Back", "In", math.clamp(t, 0, 1))
355
+ end
356
+
357
+ function Axiom.OutBack(t: number): number
358
+ return Axiom._ease("Back", "Out", math.clamp(t, 0, 1))
359
+ end
360
+
361
+ function Axiom.InOutBack(t: number): number
362
+ return Axiom._ease("Back", "InOut", math.clamp(t, 0, 1))
363
+ end
364
+
365
+ function Axiom.InElastic(t: number): number
366
+ return Axiom._ease("Elastic", "In", math.clamp(t, 0, 1))
367
+ end
368
+
369
+ function Axiom.OutElastic(t: number): number
370
+ return Axiom._ease("Elastic", "Out", math.clamp(t, 0, 1))
371
+ end
372
+
373
+ function Axiom.InOutElastic(t: number): number
374
+ return Axiom._ease("Elastic", "InOut", math.clamp(t, 0, 1))
375
+ end
376
+
377
+ function Axiom.InBounce(t: number): number
378
+ return Axiom._ease("Bounce", "In", math.clamp(t, 0, 1))
379
+ end
380
+
381
+ function Axiom.OutBounce(t: number): number
382
+ return Axiom._ease("Bounce", "Out", math.clamp(t, 0, 1))
383
+ end
384
+
385
+ function Axiom.InOutBounce(t: number): number
386
+ return Axiom._ease("Bounce", "InOut", math.clamp(t, 0, 1))
387
+ end
388
+
389
+ function Axiom.Linear(t: number): number
390
+ return math.clamp(t, 0, 1)
391
+ end
392
+
393
+ function Axiom.CubicBezier(t: number, p0: Vector3, p1: Vector3, p2: Vector3, p3: Vector3): Vector3
394
+ local u = 1 - t
395
+ return u*u*u*p0 + 3*u*u*t*p1 + 3*u*t*t*p2 + t*t*t*p3
396
+ end
397
+
398
+ function Axiom.QuadraticBezier(t: number, p0: Vector3, p1: Vector3, p2: Vector3): Vector3
399
+ local u = 1 - t
400
+ return u*u*p0 + 2*u*t*p1 + t*t*p2
401
+ end
402
+
403
+ function Axiom.Hover(elapsed: number, anchor: Vector3, look: Vector3): CFrame
404
+ local bob = math.sin(elapsed * 1.6) * 0.22
405
+ return CFrame.lookAt(anchor + Vector3.new(0, bob, 0), look)
406
+ end
407
+
408
+ function Axiom.Float(elapsed: number, anchor: Vector3, look: Vector3): CFrame
409
+ local bob = math.sin(elapsed * 1.1) * 0.18
410
+ return CFrame.lookAt(anchor + Vector3.new(0, bob, 0), look)
411
+ end
412
+
413
+ function Axiom.FloatSpin(elapsed: number, anchor: CFrame): CFrame
414
+ local pos = anchor.Position
415
+ local bob = math.sin(elapsed * 1.1) * 0.18
416
+ return CFrame.new(pos + Vector3.new(0, bob, 0)) * CFrame.Angles(0, math.rad((elapsed * 50) % 360), 0)
417
+ end
418
+
419
+ function Axiom.AabbContains(point: Vector3, min: Vector3, max: Vector3): boolean
420
+ return point.X >= min.X and point.X <= max.X and point.Y >= min.Y and point.Y <= max.Y and point.Z >= min.Z and point.Z <= max.Z
421
+ end
422
+
423
+ function Axiom.SphereContains(point: Vector3, center: Vector3, radius: number): boolean
424
+ return (point - center).Magnitude <= radius
425
+ end
426
+
427
+ function Axiom.RayPlane(origin: Vector3, dir: Vector3, point: Vector3, normal: Vector3): Vector3
428
+ local denom = dir:Dot(normal)
429
+ if math.abs(denom) < 1e-8 then return Vector3.zero end
430
+ local t = (point - origin):Dot(normal) / denom
431
+ if t < 0 then return Vector3.zero end
432
+ return origin + dir * t
433
+ end
434
+
435
+ function Axiom.Barycentric(p: Vector3, a: Vector3, b: Vector3, c: Vector3): Vector3
436
+ local v0, v1, v2 = b - a, c - a, p - a
437
+ local d00, d01, d11, d20, d21 = v0:Dot(v0), v0:Dot(v1), v1:Dot(v1), v2:Dot(v0), v2:Dot(v1)
438
+ local denom = d00 * d11 - d01 * d01
439
+ if math.abs(denom) < 1e-8 then return Vector3.new(1, 0, 0) end
440
+ local v = (d11 * d20 - d01 * d21) / denom
441
+ local w = (d00 * d21 - d01 * d20) / denom
442
+ return Vector3.new(1 - v - w, v, w)
443
+ end
444
+
445
+ function Axiom.ClosestPointOnSegment(p: Vector3, a: Vector3, b: Vector3): Vector3
446
+ local ab = b - a
447
+ local t = math.clamp((p - a):Dot(ab) / math.max(ab:Dot(ab), 1e-8), 0, 1)
448
+ return a + ab * t
449
+ end
450
+
451
+ function Axiom.Deg(rad: number): number
452
+ return math.deg(rad)
453
+ end
454
+
455
+ function Axiom.Rad(deg: number): number
456
+ return math.rad(deg)
457
+ end
458
+
459
+ function Axiom.DeltaAngle(from: number, to: number): number
460
+ local delta = (to - from + math.pi) % (math.pi * 2) - math.pi
461
+ return delta
462
+ end
463
+
464
+ function Axiom.DeltaAngleDegrees(from: number, to: number): number
465
+ local delta = (to - from) % 360
466
+ if delta > 180 then delta -= 360 end
467
+ return delta
468
+ end
469
+
470
+ function Axiom.NormalizeAngle(angle: number): number
471
+ return Axiom.Wrap(angle, -math.pi, math.pi)
472
+ end
473
+
474
+ function Axiom.Sin(x: number): number
475
+ return math.sin(x)
476
+ end
477
+
478
+ function Axiom.Cos(x: number): number
479
+ return math.cos(x)
480
+ end
481
+
482
+ function Axiom.Tan(x: number): number
483
+ return math.tan(x)
484
+ end
485
+
486
+ function Axiom.Asin(x: number): number
487
+ return math.asin(x)
488
+ end
489
+
490
+ function Axiom.Acos(x: number): number
491
+ return math.acos(x)
492
+ end
493
+
494
+ function Axiom.Atan2(y: number, x: number): number
495
+ return math.atan2(y, x)
496
+ end
497
+
498
+ function Axiom.RandomRange(min: number, max: number): number
499
+ return min + (max - min) * math.random()
500
+ end
501
+
502
+ function Axiom.Weighted(weights: { number }): number
503
+ if #weights == 0 then return 0 end
504
+ local total = 0
505
+ for _, w in weights do total += w end
506
+ if total <= 0 then return 1 end
507
+ local pick = math.random() * total
508
+ local acc = 0
509
+ for i, w in weights do acc += w
510
+ if pick <= acc then return i end
511
+ end
512
+ return #weights
513
+ end
514
+
515
+ function Axiom.Gaussian(mean: number?, std: number?): number
516
+ local u, v = math.random(), math.random()
517
+ local mag = math.sqrt(-2 * math.log(math.max(u, 1e-8))) * math.cos(2 * math.pi * v)
518
+ return (mean or 0) + mag * (std or 1)
519
+ end
520
+
521
+ function Axiom.Average(values: { number }): number
522
+ if #values == 0 then return 0 end
523
+ local sum = 0
524
+ for _, v in values do sum += v end
525
+ return sum / #values
526
+ end
527
+
528
+ function Axiom.Sum(values: { number }): number
529
+ local total = 0
530
+ for _, v in values do total += v end
531
+ return total
532
+ end
533
+
534
+ function Axiom.HashU32(n: number): number
535
+ local x = bit32.bxor(math.floor(n) * 374761393, bit32.rshift(math.floor(n), 13))
536
+ return bit32.band(x * 1274126177, 0xffffffff)
537
+ end
538
+
539
+ function Axiom.Value1(x: number): number
540
+ return Axiom.HashU32(x) / 4294967295
541
+ end
542
+
543
+ function Axiom.Value2(x: number, y: number): number
544
+ return Axiom.HashU32(x * 374761 + y * 668265) / 4294967295
545
+ end
546
+
547
+ function Axiom.Value3(x: number, y: number, z: number): number
548
+ return Axiom.HashU32(x * 374761 + y * 668265 + z * 1274126) / 4294967295
549
+ end
550
+
551
+ function Axiom.FromHSV(h: number, s: number, v: number): Color3
552
+ return Color3.fromHSV(h, s, v)
553
+ end
554
+
555
+ function Axiom.Contrast(color: Color3, amount: number): Color3
556
+ return Color3.new(math.clamp((color.R - 0.5) * amount + 0.5, 0, 1), math.clamp((color.G - 0.5) * amount + 0.5, 0, 1), math.clamp((color.B - 0.5) * amount + 0.5, 0, 1))
557
+ end
558
+
559
+ function Axiom.LerpHSV(a: Color3, b: Color3, t: number): Color3
560
+ local ah, as, av = a:ToHSV()
561
+ local bh, bs, bv = b:ToHSV()
562
+ return Color3.fromHSV((ah + Axiom.DeltaAngle(ah * math.pi * 2, bh * math.pi * 2) / (math.pi * 2) * t) % 1, as + (bs - as) * t, av + (bv - av) * t)
563
+ end
564
+
565
+ Axiom.Groups = {
566
+ Scalar = { "Clamp", "Map", "Wrap", "Sign", "Round", "Snap", "PingPong", "Saturate", "Fract", "InvLerp", "Approach", "IsFinite", "Abs", "Min", "Max", "Pow", "Sqrt", "Cbrt", "Hypot", "Log", "Exp", "Smoothstep", "Smootherstep", "Gcd", "Lcm", "IsEven", "IsOdd", "Factorial", "Scale" },
567
+ Lerp = { "Lerp", "LerpClamped", "LerpVector2", "LerpVector3", "LerpColor3", "LerpCFrame", "LerpUDim2", "LerpAngle", "Inverse" },
568
+ Vector = { "Project", "Reject", "Reflect", "Angle", "Distance", "Distance2", "Orthonormal", "Slerp", "LookAt" },
569
+ CFrame = { "SlerpCFrame", "Flat" },
570
+ Easing = { "InSine", "OutSine", "InOutSine", "InQuad", "OutQuad", "InOutQuad", "InCubic", "OutCubic", "InOutCubic", "InQuart", "OutQuart", "InOutQuart", "InQuint", "OutQuint", "InOutQuint", "InExpo", "OutExpo", "InOutExpo", "InCirc", "OutCirc", "InOutCirc", "InBack", "OutBack", "InOutBack", "InElastic", "OutElastic", "InOutElastic", "InBounce", "OutBounce", "InOutBounce", "Linear" },
571
+ Bezier = { "CubicBezier", "QuadraticBezier", "Hover", "Float", "FloatSpin" },
572
+ Geometry = { "AabbContains", "SphereContains", "RayPlane", "Barycentric", "ClosestPointOnSegment" },
573
+ Trig = { "Deg", "Rad", "DeltaAngle", "DeltaAngleDegrees", "NormalizeAngle", "Sin", "Cos", "Tan", "Asin", "Acos", "Atan2" },
574
+ Probability = { "RandomRange", "Weighted", "Gaussian", "Average", "Sum" },
575
+ Noise = { "HashU32", "Value1", "Value2", "Value3" },
576
+ Color = { "FromHSV", "Contrast", "LerpHSV" },
577
+ } :: { [string]: { string } }
578
+
579
+ function Axiom.Select(names: { string }): typeof(Axiom)
580
+ local selected: { [string]: unknown } = {}
581
+ for _, name in names do
582
+ local groupFns = Axiom.Groups[name]
583
+ if groupFns then
584
+ for _, fnName in groupFns do
585
+ selected[fnName] = Axiom[fnName]
586
+ end
587
+ elseif typeof(Axiom[name]) == "function" then
588
+ selected[name] = Axiom[name]
589
+ else
590
+ error(`[Axiom.Select] unknown group or function "{name}"`)
591
+ end
592
+ end
593
+ if selected.LerpVector3 ~= nil then
594
+ selected.LerpVector = selected.LerpVector3
595
+ end
596
+ if selected.RandomRange ~= nil then
597
+ selected.Random = selected.RandomRange
598
+ end
599
+ if selected.DeltaAngle ~= nil then
600
+ selected.AngleDiff = selected.DeltaAngle
601
+ end
602
+ return selected :: typeof(Axiom)
603
+ end
604
+
605
+ Axiom.LerpVector = Axiom.LerpVector3
606
+ Axiom.Random = Axiom.RandomRange
607
+ Axiom.AngleDiff = Axiom.DeltaAngle
608
+ return Axiom