1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-01 04:20:27 +02:00

add m_translation

This commit is contained in:
Justin Lin
2019-04-28 14:54:54 +08:00
parent 249022a271
commit 29e387cdcf

6
src/m_translation.scad Normal file
View File

@@ -0,0 +1,6 @@
function m_translation(v) = [
[1, 0, 0, v[0]],
[0, 1, 0, v[1]],
[0, 0, 1, v[2]],
[0, 0, 0, 1]
];