diff --git a/README.md b/README.md index ca6ec904..a644d389 100644 --- a/README.md +++ b/README.md @@ -153,7 +153,6 @@ These examples incubate dotSCAD and dotSCAD refactors these examples. See [examp - [util/zip](https://openhome.cc/eGossip/OpenSCAD/lib2x-zip.html) ### Matrix -- [matrix/m_cumulate](https://openhome.cc/eGossip/OpenSCAD/lib2x-m_cumulate.html) - [matrix/m_determinant](https://openhome.cc/eGossip/OpenSCAD/lib2x-m_determinant.html) - [matrix/m_mirror](https://openhome.cc/eGossip/OpenSCAD/lib2x-m_mirror.html) - [matrix/m_rotation](https://openhome.cc/eGossip/OpenSCAD/lib2x-m_rotation.html) diff --git a/docs/lib2x-m_cumulate.md b/docs/lib2x-m_cumulate.md deleted file mode 100644 index ac5f6e12..00000000 --- a/docs/lib2x-m_cumulate.md +++ /dev/null @@ -1,32 +0,0 @@ -# m_cumulate - -The power of using transformation matrice is that you can cumulate all transformations in a matrix. This function multipies all transformation matrice. - -**Since:** 1.1 - -## Parameters - -The dir changed since 2.0. - -- `matrice` : A list of 4x4 transformation matrice. - -## Examples - - use ; - use ; - use ; - use - - m = m_cumulate([ - m_translation([10, 20, 10]), m_scaling(2), m_rotation(60)] - ); - - multmatrix(m) - cube(1); - - multmatrix(m) - sphere(1); - - -![m_cumulate](images/lib2x-m_cumulate-1.JPG) - diff --git a/src/matrix/_impl/_m_cumulate_impl.scad b/src/matrix/_impl/_m_cumulate_impl.scad deleted file mode 100644 index 30736910..00000000 --- a/src/matrix/_impl/_m_cumulate_impl.scad +++ /dev/null @@ -1,8 +0,0 @@ -function _m_cumulate(matrice, i) = - i == len(matrice) - 2 ? - matrice[i] * matrice[i + 1] : - matrice[i] * _m_cumulate(matrice, i + 1); - -function _m_cumulate_impl(matrice) = - len(matrice) == 1 ? matrice[0] : _m_cumulate(matrice, 0); - \ No newline at end of file diff --git a/src/matrix/m_cumulate.scad b/src/matrix/m_cumulate.scad deleted file mode 100644 index a9cc23fb..00000000 --- a/src/matrix/m_cumulate.scad +++ /dev/null @@ -1,14 +0,0 @@ -/** -* m_cumulate.scad -* -* @copyright Justin Lin, 2019 -* @license https://opensource.org/licenses/lgpl-3.0.html -* -* @see https://openhome.cc/eGossip/OpenSCAD/lib2x-m_cumulate.html -* -**/ - -use <_impl/_m_cumulate_impl.scad>; - -function m_cumulate(matrice) = _m_cumulate_impl(matrice); -