ws-cleanup: MeshFlatten, Zip and the SVG style parser reuse Types.Scene.mul, Types.Date.civilFromDays, Raster.multiply

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
4DBugandClaude Opus 5.5 committed 2026-10-31 12:31:32 -05:00
1 parent 9bcf061338
commit 24c9ab27a3
4 files changed
+6 -36

No files matched your search

+1 -14
View File
@@ -109,20 +109,7 @@ end
-- ------------------------------------------------------------------------------------------------ transforms
local IDENTITY = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 }
-- column-major 4x4 product a * b
local function mul(a: { number }, b: { number }): { number }
local m = table.create(16, 0)
for c = 0, 3 do
for r = 0, 3 do
local s = 0
for k = 0, 3 do
s += a[k * 4 + r + 1] * b[c * 4 + k + 1]
end
m[c * 4 + r + 1] = s
end
end
return m
end
local mul = Types.Scene.mul -- column-major 4x4 product a * b
local function numList(v: any, n: number): boolean
if type(v) ~= "table" then