1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-15 03:05:41 +02:00

add m_multiply doc

This commit is contained in:
Justin Lin
2019-05-02 10:33:43 +08:00
parent b9bf11ebe9
commit 70db05592b
2 changed files with 23 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

23
docs/lib-m_multiply.md Normal file
View File

@@ -0,0 +1,23 @@
# m_multiply
Multiply two 4x4 transformation matrice.
## Parameters
- `ma`, `mb` : Two 4x4 transformation matrice.
## Examples
include <m_multiply.scad>;
include <m_scaling.scad>;
include <m_rotation.scad>;
ma = m_scaling([0.5, 1, 2]);
mb = m_rotation([0, 0, 90]);
cube(10);
multmatrix(m_multiply(ma, mb))
translate([15, 0, 0]) cube(10);
![m_multiply](images/lib-m_multiply-1.JPG)