You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
415 B
22 lines
415 B
/**
|
|
* m_transpose.scad
|
|
*
|
|
* @copyright Justin Lin, 2021
|
|
* @license https://opensource.org/licenses/lgpl-3.0.html
|
|
*
|
|
* @see https://openhome.cc/eGossip/OpenSCAD/lib3x-m_transpose.html
|
|
*
|
|
**/
|
|
|
|
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]
|
|
]
|
|
];
|