1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-11 09:14:29 +02:00

add m_transpose

This commit is contained in:
Justin Lin
2021-06-21 08:50:45 +08:00
parent cb12836e8b
commit 1febd7deea

View File

@@ -0,0 +1,12 @@
function m_transpose(m) =
let(
column = len(m[0]),
row = len(m)
)
[
for(y = 0; y < column; y = y + 1)
[
for(x = 0; x < row; x = x + 1)
m[x][y]
]
];