1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-17 14:18:13 +01:00
dotSCAD/docs/lib3x-m_scaling.md
2022-06-06 13:11:46 +08:00

22 lines
393 B
Markdown

# m_scaling
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/lib3x-m_scaling-1.JPG)