1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-10-03 01:32:03 +02:00
Files
dotSCAD/test/matrix/test_m_translation.scad
Justin Lin 8f6c8f340a refactor
2022-03-10 20:16:40 +08:00

12 lines
284 B
OpenSCAD

use <matrix/m_translation.scad>;
module test_m_translation() {
echo("==== test_m_translation ====");
expected = [[1, 0, 0, 10], [0, 1, 0, 20], [0, 0, 1, 0], [0, 0, 0, 1]];
actual = m_translation([10, 20, 0]);
assert(expected == actual);
}
test_m_translation();