diff --git a/test/matrix/test_m_translation.scad b/test/matrix/test_m_translation.scad new file mode 100644 index 00000000..9751b54b --- /dev/null +++ b/test/matrix/test_m_translation.scad @@ -0,0 +1,13 @@ +use ; +use ; + +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]); + + assertEqualPoints(expected, actual); +} + +test_m_translation(); \ No newline at end of file