1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-09-25 05:51:41 +02:00
Files
dotSCAD/docs/lib2x-m_scaling.md
Justin Lin c62b4ef638 rename
2020-03-30 20:13:47 +08:00

24 lines
425 B
Markdown

# m_scaling
The dir changed since 2.0.
Generate a 4x4 transformation matrix which can pass into `multmatrix` to scale its child elements using the specified vector.
**Since:** 1.1
## Parameters
- `v` : Elements will be scaled using the vector.
## Examples
use <matrix/m_scaling.scad>;
cube(10);
translate([15, 0, 0])
multmatrix(m_scaling([0.5, 1, 2]))
cube(10);
![m_scaling](images/lib2x-m_scaling-1.JPG)