1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-01 12:30:33 +02:00
This commit is contained in:
Justin Lin
2021-06-24 15:32:08 +08:00
parent 95c5076a0a
commit fcbf5d1923
3 changed files with 41 additions and 1 deletions

30
docs/lib3x-m_transpose.md Normal file
View File

@@ -0,0 +1,30 @@
# m_transpose
It transposes a matrix.
**Since:** 2.4
## Parameters
- `m` : A matrix.
## Examples
use <matrix/m_transpose.scad>;
original_m = [
[1, 2, 3, 4],
[5, 6, 7, 8],
[9, 10, 11, 12]
];
traget = [
[1, 5, 9],
[2, 6, 10],
[3, 7, 11],
[4, 8, 12]
];
transposed = m_transpose(original_m);
assert(transposed == traget);