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:
BIN
docs/images/lib-m_multiply-1.JPG
Normal file
BIN
docs/images/lib-m_multiply-1.JPG
Normal file
Binary file not shown.
After Width: | Height: | Size: 22 KiB |
23
docs/lib-m_multiply.md
Normal file
23
docs/lib-m_multiply.md
Normal 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);
|
||||||
|
|
||||||
|

|
||||||
|
|
Reference in New Issue
Block a user