1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-07-31 03:50:27 +02:00

add m_scaling doc

This commit is contained in:
Justin Lin
2019-05-02 10:27:52 +08:00
parent 32e582554c
commit b9bf11ebe9
2 changed files with 19 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

19
docs/lib-m_scaling.md Normal file
View File

@@ -0,0 +1,19 @@
# m_scaling
Generate a 4x4 transformation matrix which can pass into `multmatrix` to scale its child elements using the specified vector.
## Parameters
- `v` : Elements will be scaled using the vector.
## Examples
include <m_scaling.scad>;
cube(10);
translate([15, 0, 0])
multmatrix(m_scaling([0.5, 1, 2]))
cube(10);
![m_scaling](images/lib-m_scaling-1.JPG)