1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-17 22:28:16 +01:00
dotSCAD/docs/lib3x-m_scaling.md

22 lines
394 B
Markdown
Raw Normal View History

2019-05-02 10:27:52 +08:00
# m_scaling
Generate a 4x4 transformation matrix which can pass into `multmatrix` to scale its child elements using the specified vector.
2019-05-02 10:44:19 +08:00
**Since:** 1.1
2019-05-02 10:27:52 +08:00
## Parameters
- `v` : Elements will be scaled using the vector.
## Examples
2020-01-28 17:51:20 +08:00
use <matrix/m_scaling.scad>;
2019-05-02 10:27:52 +08:00
cube(10);
translate([15, 0, 0])
2022-04-06 17:44:11 +08:00
multmatrix(m_scaling([0.5, 1, 2]))
cube(10);
2019-05-02 10:27:52 +08:00
2021-02-24 21:09:54 +08:00
![m_scaling](images/lib3x-m_scaling-1.JPG)
2019-05-02 10:27:52 +08:00