1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-17 14:18:13 +01:00
dotSCAD/docs/lib2x-m_scaling.md

24 lines
425 B
Markdown
Raw Normal View History

2019-05-02 10:27:52 +08:00
# m_scaling
2019-06-24 07:29:42 +08:00
The dir changed since 2.0.
2019-05-02 10:27:52 +08:00
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])
multmatrix(m_scaling([0.5, 1, 2]))
cube(10);
2020-03-30 20:13:47 +08:00
![m_scaling](images/lib2x-m_scaling-1.JPG)
2019-05-02 10:27:52 +08:00